Skip to content

Commit 0ecb12d

Browse files
committed
Fix Mnemonic::language_of docs
1 parent dabbdce commit 0ecb12d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ impl Mnemonic {
219219
Ok(())
220220
}
221221

222-
/// Determine the language of the mnemonic based on the first word.
222+
/// Determine the language of the mnemonic.
223+
///
224+
/// NOTE: This method only guarantees that the returned language is the
225+
/// correct language on the assumption that the mnemonic is valid.
226+
/// It does not itself validate the mnemonic.
223227
///
224228
/// Some word lists don't guarantee that their words don't occur in other
225229
/// word lists. In the extremely unlikely case that a word list can be

0 commit comments

Comments
 (0)