Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6e0d88

Browse files
authored
Update Graphemes Example
Update the Graphemes example to use method syntax to be more coherent with the rest of the example.
1 parentf835b6a commitd6e0d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use unicode_segmentation::UnicodeSegmentation;
1010

1111
fnmain() {
1212
lets="a̐éö̲\r\n";
13-
letg=UnicodeSegmentation::graphemes(s,true).collect::<Vec<&str>>();
13+
letg=s.graphemes(true).collect::<Vec<&str>>();
1414
letb:&[_]=&["","","ö̲","\r\n"];
1515
assert_eq!(g,b);
1616

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp