Two typos

This commit is contained in:
Steven Roose 2021-03-08 10:37:38 +00:00
parent da84fd8164
commit 7771fd8244
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ impl Mnemonic {
}
/// Generate a new [Mnemonic] in the given language.
/// For the different supported word counts, see documentation on [Mnemonoc].
/// For the different supported word counts, see documentation on [Mnemonic].
#[cfg(feature = "rand")]
pub fn generate_in(language: Language, word_count: usize) -> Result<Mnemonic, Error> {
if word_count < 6 || word_count % 6 != 0 || word_count > MAX_NB_WORDS {
@ -212,7 +212,7 @@ impl Mnemonic {
}
/// Generate a new [Mnemonic] in English.
/// For the different supported word counts, see documentation on [Mnemonoc].
/// For the different supported word counts, see documentation on [Mnemonic].
#[cfg(feature = "rand")]
pub fn generate(word_count: usize) -> Result<Mnemonic, Error> {
Mnemonic::generate_in(Language::English, word_count)