Spell check docs: state the 100-character limit instead of linking a private constant (#1175)

This commit is contained in:
Ayoze Torres
2026-10-28 01:13:04 +00:00
parent 7c891de450
commit d027f9d866
+1 -1
View File
@@ -356,7 +356,7 @@ impl Dictionary {
}
/// Is `word` spelt correctly? Capitalised and upper-case forms of a lower-case word pass.
/// Words longer than [`MAX_CHECK_CHARS`] are not checked (they pass).
/// Words longer than 100 characters are not checked (they pass).
pub fn check(&self, word: &str) -> bool {
// Compound splitting tries every split point, so checking costs O(n²) in the word's
// length: a 100,000-character "word" took seconds per check under a compounding