Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(fst-dict): correct some links in doc comments

Grant Lemonsd74d54535ee6
diff --git a/harper-core/src/spell/full_dictionary.rs b/harper-core/src/spell/full_dictionary.rs
index f0779a615..2c6825502 100644
--- a/harper-core/src/spell/full_dictionary.rs
+++ b/harper-core/src/spell/full_dictionary.rs
@@ -68,7 +68,7 @@ impl FullDictionary {
/// Create a dictionary from the curated dictionary included
/// in the Harper binary.
- /// Consider using [`FstDictionary::curated()`] instead, as it is more performant for spellchecking.
+ /// Consider using [`super::FstDictionary::curated()`] instead, as it is more performant for spellchecking.
pub fn curated() -> Arc<Self> {
DICT.with(|v| v.clone())
}
@@ -171,8 +171,8 @@ impl Dictionary for FullDictionary {
}
/// Suggest a correct spelling for a given misspelled word.
- /// [`word`] is assumed to be quite small (n < 100).
- /// [`max_distance`] relates to an optimization that allows the search
+ /// `Self::word` is assumed to be quite small (n < 100).
+ /// `max_distance` relates to an optimization that allows the search
/// algorithm to prune large portions of the search.
fn fuzzy_match(
&self,