We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aeccaf6 + f01e0b2 commit da090d2Copy full SHA for da090d2
src/language/mod.rs
@@ -82,7 +82,7 @@ impl Language {
82
83
/// The word list for this language.
84
#[inline]
85
- pub(crate) fn word_list(self) -> &'static [&'static str; 2048] {
+ pub fn word_list(self) -> &'static [&'static str; 2048] {
86
match self {
87
Language::English => &english::WORDS,
88
#[cfg(feature = "chinese-simplified")]
@@ -146,7 +146,7 @@ impl Language {
146
147
/// Get the index of the word in the word list.
148
149
- pub(crate) fn find_word(self, word: &str) -> Option<u16> {
+ pub fn find_word(self, word: &str) -> Option<u16> {
150
self.word_list().iter().position(|w| *w == word).map(|i| i as u16)
151
}
152
0 commit comments