From a0bb29c05ea2caf4df772defdefc13ea73b004b6 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Mon, 13 Mar 2023 12:12:39 +0100 Subject: [PATCH 1/2] Fix typo in variable documentation Signed-off-by: Jean-Pierre De Jesus DIAZ --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 856ffe6..b5922f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,7 +167,7 @@ impl error::Error for Error {} pub struct Mnemonic { /// The language the mnemonic. lang: Language, - /// The indiced of the words. + /// The indices of the words. /// Mnemonics with less than the max nb of words are terminated with EOF. words: [u16; MAX_NB_WORDS], } From 795574e73bd3eba55d12e35ce154a8dac1b6834a Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Mon, 13 Mar 2023 12:13:01 +0100 Subject: [PATCH 2/2] Remove extern crate from examples documentation Signed-off-by: Jean-Pierre De Jesus DIAZ --- src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b5922f8..9163658 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -249,8 +249,6 @@ impl Mnemonic { /// Example: /// /// ``` - /// extern crate bip39; - /// /// use bip39::{Mnemonic, Language}; /// /// let mut rng = bip39::rand::thread_rng(); @@ -281,8 +279,6 @@ impl Mnemonic { /// Example: /// /// ``` - /// extern crate bip39; - /// /// use bip39::{Mnemonic, Language}; /// /// let m = Mnemonic::generate_in(Language::English, 24).unwrap(); @@ -298,9 +294,7 @@ impl Mnemonic { /// Example: /// /// ``` - /// extern crate bip39; - /// - /// use bip39::{Mnemonic,}; + /// use bip39::Mnemonic; /// /// let m = Mnemonic::generate(24).unwrap(); /// ```