diff --git a/README.md b/README.md index e92e178..e6f134f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ hypher = "0.1" efficiently encoded finite automata at build time. - Zero load time: Hyphenation automata operate directly over the embedded binary data with no up-front decoding. -- No allocations unless when hyphenating very long words (>= 39 bytes). You can +- No allocations unless when hyphenating very long words (> 41 bytes). You can disable the `alloc` feature, but then overly long words lead to a panic. - Support for many languages. - No unsafe code, no dependencies, no std. diff --git a/src/lib.rs b/src/lib.rs index 87a3c83..932bc06 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,7 +71,6 @@ include!("lang.rs"); /// This uses the default [bounds](Lang::bounds) for the language. /// /// # Panics -/// /// Panics if the word is more than 41 bytes long and the `alloc` feature is /// disabled. /// @@ -96,8 +95,7 @@ pub fn hyphenate(word: &str, lang: Lang) -> Syllables<'_> { /// Returns an iterator over the syllables. /// /// # Panics -/// -/// Panics if the word is more than 38 bytes long and the `alloc` feature is +/// Panics if the word is more than 41 bytes long and the `alloc` feature is /// disabled. /// /// # Example