Skip to content

Commit 88819a0

Browse files
committed
Make Mnemonic::language_of public
1 parent 3994ee9 commit 88819a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl Mnemonic {
370370
/// word lists. In the extremely unlikely case that a word list can be
371371
/// interpreted in multiple languages, an [Error::AmbiguousLanguages] is
372372
/// returned, containing the possible languages.
373-
fn language_of<S: AsRef<str>>(mnemonic: S) -> Result<Language, Error> {
373+
pub fn language_of<S: AsRef<str>>(mnemonic: S) -> Result<Language, Error> {
374374
Mnemonic::language_of_iter(mnemonic.as_ref().split_whitespace())
375375
}
376376

0 commit comments

Comments
 (0)