Doc: shielded data always contains at least one action (#2218)

Remove an incorrect part of a comment
This commit is contained in:
teor 2021-05-28 01:06:08 +10:00 committed by GitHub
parent f77441d49c
commit f0c271bcfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -44,8 +44,7 @@ impl ShieldedData {
self.actions.actions()
}
/// Collect the [`Nullifier`]s for this transaction, if it contains
/// [`Action`]s.
/// Collect the [`Nullifier`]s for this transaction.
pub fn nullifiers(&self) -> impl Iterator<Item = &Nullifier> {
self.actions().map(|action| &action.nullifier)
}