Merge pull request #30 from pezcore/docfix/num-words
Fix Mnemonic documentation for supported wordcounts
This commit is contained in:
commit
fed9a94a7d
|
@ -120,7 +120,12 @@ impl fmt::Display for Error {
|
|||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match *self {
|
||||
Error::BadWordCount(c) => {
|
||||
write!(f, "mnemonic has a word count that is not a multiple of 6: {}", c,)
|
||||
write!(
|
||||
f,
|
||||
"mnemonic has an invalid word count: {}. Word count must be 12, 15, 18, 21, \
|
||||
or 24",
|
||||
c
|
||||
)
|
||||
}
|
||||
Error::UnknownWord(i) => write!(f, "mnemonic contains an unknown word (word {})", i,),
|
||||
Error::BadEntropyBitCount(c) => write!(
|
||||
|
@ -153,7 +158,7 @@ impl error::Error for Error {}
|
|||
/// mnemonic from all the supported languages. (Languages have to be explicitly enabled using
|
||||
/// the Cargo features.)
|
||||
///
|
||||
/// Supported number of words are 12, 18 and 24.
|
||||
/// Supported number of words are 12, 15, 18, 21, and 24.
|
||||
#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[cfg_attr(feature = "zeroize", derive(Zeroize, ZeroizeOnDrop))]
|
||||
pub struct Mnemonic {
|
||||
|
|
Loading…
Reference in New Issue