From e79157c06762b25f4516563f3f5de615063cc279 Mon Sep 17 00:00:00 2001 From: l-parabellum <78786402+l-parabellum@users.noreply.github.com> Date: Tue, 11 May 2021 23:13:31 +0200 Subject: [PATCH] Update doc for IterateAccounts x/auth keeper meethod (#9285) Co-authored-by: Lazar Ivanovic --- x/auth/keeper/keeper.go | 2 +- x/auth/spec/04_keepers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/auth/keeper/keeper.go b/x/auth/keeper/keeper.go index 3f68a008d5..b690c33c37 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 f57988b4fa..8e4466cd68 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