We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f835b6a + d6e0d88 commit ac54e2dCopy full SHA for ac54e2d
README.md
@@ -10,7 +10,7 @@ use unicode_segmentation::UnicodeSegmentation;
10
11
fn main() {
12
let s = "a̐éö̲\r\n";
13
- let g = UnicodeSegmentation::graphemes(s, true).collect::<Vec<&str>>();
+ let g = s.graphemes(true).collect::<Vec<&str>>();
14
let b: &[_] = &["a̐", "é", "ö̲", "\r\n"];
15
assert_eq!(g, b);
16
0 commit comments