diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2019-05-05 12:37:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-05 12:37:31 -0700 |
| commit | ff7ef116fbe4698f9df0370021d398dc345b832b (patch) | |
| tree | e7459d4c6148f6e374472a86f9652ce9f3227dea /src/libstd | |
| parent | 2c7712b3f11ad18fbe907e520276385432f5bb10 (diff) | |
| parent | 99b98068e86605cb3c188ada3e72e9f42f91c824 (diff) | |
| download | rust-ff7ef116fbe4698f9df0370021d398dc345b832b.tar.gz rust-ff7ef116fbe4698f9df0370021d398dc345b832b.zip | |
Rollup merge of #60536 - brainplot:fix-unicode-character, r=dtolnay
Correct code points to match their textual description Probably due to a copy-paste error, in the sentence > For example, despite looking similar, the 'é' character is one Unicode code point while 'é' is two Unicode code points: the two `é`'s were actually the same character in the text (i.e. the same Unicode character U+00E9). The code listing below instead had two different Unicode characters for the two `é`s, as it was supposed to. The example shown wasn't clear at first so I started inspecting the text and found this out. I simply copied the character from the code listing to the description surrounding the code. It's a minor thing but I thought it would make things clearer for others, especially since the example is about how Rust handles `char`s.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/primitive_docs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index 94fece10e0f..24f728158c4 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -279,7 +279,7 @@ mod prim_never { } /// /// As always, remember that a human intuition for 'character' may not map to /// Unicode's definitions. For example, despite looking similar, the 'é' -/// character is one Unicode code point while 'é' is two Unicode code points: +/// character is one Unicode code point while 'é' is two Unicode code points: /// /// ``` /// let mut chars = "é".chars(); |
