From 581ef0eb8e5bd810501831a3f746d7c93ac2cbba Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Mon, 25 Sep 2023 09:59:00 +0200 Subject: refactor and split share into words --- src/mnemonic/wordlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mnemonic') diff --git a/src/mnemonic/wordlist.rs b/src/mnemonic/wordlist.rs index 0e472ee..56dd55e 100644 --- a/src/mnemonic/wordlist.rs +++ b/src/mnemonic/wordlist.rs @@ -39,7 +39,7 @@ impl<'a> Wordlist<'a> { /// # Panics /// /// This method panics if the index is out of range for the BIP-0039 word - /// list: it must be less than `WORD_COUNT` or `1024`. + /// list: it must be less than `WORD_COUNT` or `2048`. pub fn word(&'a self, index: usize) -> &'a str { assert!(index < WORD_COUNT, "invalid word index"); self.0[index] -- cgit v1.2.3