Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify docs about zero balances #1514

Open
mattsse opened this issue Jun 11, 2024 · 1 comment
Open

Clarify docs about zero balances #1514

mattsse opened this issue Jun 11, 2024 · 1 comment

Comments

@mattsse
Copy link
Collaborator

mattsse commented Jun 11, 2024

/// Like [CacheAccount::increment_balance], this assumes that incremented balances are not
/// zero, and will not overflow once incremented. If using this to implement withdrawals, zero
/// balances must be filtered out before calling this function.

but 0 balances are skipped:

if balance == 0 {
continue;
}

are the docs outdated @rakita ?

@rakita
Copy link
Member

rakita commented Jun 12, 2024

They are outdated, will remove them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants