Merge pull request #51 from Foundation-Devices/jeandudey/docs

Fix typo and remove extern crate in documentation
This commit is contained in:
Steven Roose 2023-08-27 20:31:14 -05:00 committed by GitHub
commit d93a017ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -168,7 +168,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],
}
@ -250,8 +250,6 @@ impl Mnemonic {
/// Example:
///
/// ```
/// extern crate bip39;
///
/// use bip39::{Mnemonic, Language};
///
/// let mut rng = bip39::rand::thread_rng();
@ -282,8 +280,6 @@ impl Mnemonic {
/// Example:
///
/// ```
/// extern crate bip39;
///
/// use bip39::{Mnemonic, Language};
///
/// let m = Mnemonic::generate_in(Language::English, 24).unwrap();
@ -299,9 +295,7 @@ impl Mnemonic {
/// Example:
///
/// ```
/// extern crate bip39;
///
/// use bip39::{Mnemonic,};
/// use bip39::Mnemonic;
///
/// let m = Mnemonic::generate(24).unwrap();
/// ```