Merge pull request #51 from Foundation-Devices/jeandudey/docs
Fix typo and remove extern crate in documentation
This commit is contained in:
commit
d93a017ec3
10
src/lib.rs
10
src/lib.rs
|
@ -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();
|
||||
/// ```
|
||||
|
|
Loading…
Reference in New Issue