Skip to content

Commit 055e7db

Browse files
authored
Update MutationHooks docstrings (#918)
1 parent 4ae0372 commit 055e7db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

traits/src/currency.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ impl<AccountId, CurrencyId, Balance> OnTransfer<AccountId, CurrencyId, Balance>
692692
}
693693

694694
pub trait MutationHooks<AccountId, CurrencyId, Balance> {
695-
/// Handler to burn or transfer account's dust
695+
/// Handler to burn or transfer account's dust.
696696
type OnDust: OnDust<AccountId, CurrencyId, Balance>;
697697

698698
/// Hook to run before slashing an account.
@@ -710,10 +710,10 @@ pub trait MutationHooks<AccountId, CurrencyId, Balance> {
710710
/// Hook to run after transferring from an account to another.
711711
type PostTransfer: OnTransfer<AccountId, CurrencyId, Balance>;
712712

713-
/// Handler for when an account was created
713+
/// Handler for when an account was created.
714714
type OnNewTokenAccount: Happened<(AccountId, CurrencyId)>;
715715

716-
/// Handler for when an account was created
716+
/// Handler for when an account was killed.
717717
type OnKilledTokenAccount: Happened<(AccountId, CurrencyId)>;
718718
}
719719

0 commit comments

Comments
 (0)