File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _hypher_ separates words into syllables.
6
6
efficiently encoded finite automata at build time.
7
7
- Zero load time: Hyphenation automata operate directly over the embedded
8
8
binary data with no up-front decoding.
9
- - No allocations unless when hyphenating very long words (>= 39 bytes). You can
9
+ - No allocations unless when hyphenating very long words (> 41 bytes). You can
10
10
disable the `alloc` feature, but then overly long words lead to a panic.
11
11
- Support for many languages.
12
12
- No unsafe code, no dependencies, no std.
@@ -72,7 +72,7 @@ include!("lang.rs");
72
72
///
73
73
/// # Panics
74
74
///
75
- /// Panics if the word is more than 38 bytes long and the `alloc` feature is
75
+ /// Panics if the word is more than 41 bytes long and the `alloc` feature is
76
76
/// disabled.
77
77
///
78
78
/// # Example
@@ -279,7 +279,7 @@ impl Bytes {
279
279
Self :: Array ( [ 0 ; 40 ] . into_iter ( ) , len)
280
280
} else {
281
281
#[ cfg( not( feature = "alloc" ) ) ]
282
- panic ! ( "hypher: maximum word length is 39 when `alloc` is disabled" ) ;
282
+ panic ! ( "hypher: maximum word length is 41 when `alloc` is disabled" ) ;
283
283
284
284
#[ cfg( feature = "alloc" ) ]
285
285
Self :: Vec ( alloc:: vec![ 0 ; len] . into_iter ( ) )
You can’t perform that action at this time.
0 commit comments