From 73c9f42fc07bc62986ae841dece5b03d2a6c7b26 Mon Sep 17 00:00:00 2001 From: Alex Johnson Date: Sat, 26 Mar 2022 20:18:31 -0400 Subject: [PATCH] fix: typo in RandomAcc() comment (#11440) Fixes a typo in the function comment for RandomAcc() in `types/simulation/account.go`. --- types/simulation/account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/simulation/account.go b/types/simulation/account.go index 5bc5bfe14d..b9f69ffa61 100644 --- a/types/simulation/account.go +++ b/types/simulation/account.go @@ -25,8 +25,7 @@ func (acc Account) Equals(acc2 Account) bool { return acc.Address.Equals(acc2.Address) } -// RandomAcc picks and returns a random account from an array and returs its -// position in the array. +// RandomAcc picks and returns a random account and its index from an array. func RandomAcc(r *rand.Rand, accs []Account) (Account, int) { idx := r.Intn(len(accs)) return accs[idx], idx