File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ you to partition your code within the crate itself.
2020
2121As an example, let's make a * phrases* crate, which will give us various phrases
2222in different languages. To keep things simple, we'll stick to "greetings" and
23- "farewells" as two kinds of phrases, and use English and Japanese (日本語) as
23+ "farewells" as two kinds of phrases, and use English and Japanese (日本語) as
2424two languages for those phrases to be in. We'll use this module layout:
2525
2626``` text
Original file line number Diff line number Diff line change 169169Note that ` l ` has the type ` &str ` here, since a single grapheme can consist of
170170multiple codepoints, so a ` char ` wouldn't be appropriate.
171171
172- This will print out each visible character in turn, as you'd expect: first "u͔" , then
173- " n͈̰̎" , etc. If you wanted each individual codepoint of each grapheme, you can use ` .chars() ` :
172+ This will print out each visible character in turn, as you'd expect: first ` u͔ ` , then
173+ ` n͈̰̎ ` , etc. If you wanted each individual codepoint of each grapheme, you can use ` .chars() ` :
174174
175175```
176176let s = "u͔n͈̰̎i̙̮͚̦c͚̉o̼̩̰͗d͔̆̓ͥé";
You can’t perform that action at this time.
0 commit comments