Skip to content

Commit

Permalink
Fix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Mar 1, 2024
1 parent 0b44a9d commit 4cd2f5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand All @@ -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
Expand Down

0 comments on commit 4cd2f5f

Please sign in to comment.