Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(fst-dict): change visibility of some `FullDictionary` functions to pub(super) - get_word - get_word_metadata
Grant Lemons025e3f0e2d32
diff --git a/harper-core/src/spell/full_dictionary.rs b/harper-core/src/spell/full_dictionary.rsindex ac2333ae8..422250062 100644--- a/harper-core/src/spell/full_dictionary.rs+++ b/harper-core/src/spell/full_dictionary.rs@@ -131,10 +131,10 @@ impl FullDictionary {word_len_starts}- pub fn get_word(&self, index: usize) -> &CharString {+ pub(super) fn get_word(&self, index: usize) -> &CharString {&self.words[index]}- pub fn get_metadata(&self, index: usize) -> &WordMetadata {+ pub(super) fn get_metadata(&self, index: usize) -> &WordMetadata {self.word_map.get(self.get_word(index)).unwrap()}}