Skip to content

Commit f43546f

Browse files
committed
Rollup merge of #22329 - thiagooak:book, r=steveklabnik
on crates and modules - replace ")" on more strings - improve readability of grapheme
2 parents d80e5c7 + f658efe commit f43546f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/doc/trpl/crates-and-modules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ you to partition your code within the crate itself.
2020

2121
As an example, let's make a *phrases* crate, which will give us various phrases
2222
in 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
2424
two languages for those phrases to be in. We'll use this module layout:
2525

2626
```text

src/doc/trpl/more-strings.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ é
169169
Note that `l` has the type `&str` here, since a single grapheme can consist of
170170
multiple 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 ``, then
173+
`n͈̰̎`, etc. If you wanted each individual codepoint of each grapheme, you can use `.chars()`:
174174

175175
```
176176
let s = "u͔n͈̰̎i̙̮͚̦c͚̉o̼̩̰͗d͔̆̓ͥé";

0 commit comments

Comments
 (0)