mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-31 05:56:55 -06:00
Spell check docs: state the 100-character limit instead of linking a private constant (#1175)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user