diff --git a/x/auth/keeper/keeper.go b/x/auth/keeper/keeper.go index 3f68a008d513..b690c33c37ce 100644 --- a/x/auth/keeper/keeper.go +++ b/x/auth/keeper/keeper.go @@ -31,7 +31,7 @@ type AccountKeeperI interface { // Remove an account from the store. RemoveAccount(sdk.Context, types.AccountI) - // Iterate over all accounts, calling the provided function. Stop iteraiton when it returns false. + // Iterate over all accounts, calling the provided function. Stop iteration when it returns true. IterateAccounts(sdk.Context, func(types.AccountI) bool) // Fetch the public key of an account at a specified address diff --git a/x/auth/spec/04_keepers.md b/x/auth/spec/04_keepers.md index f57988b4fa7c..8e4466cd68ab 100644 --- a/x/auth/spec/04_keepers.md +++ b/x/auth/spec/04_keepers.md @@ -29,7 +29,7 @@ type AccountKeeperI interface { // Remove an account from the store. RemoveAccount(sdk.Context, types.AccountI) - // Iterate over all accounts, calling the provided function. Stop iteraiton when it returns false. + // Iterate over all accounts, calling the provided function. Stop iteration when it returns true. IterateAccounts(sdk.Context, func(types.AccountI) bool) // Fetch the public key of an account at a specified address