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.
char
1 parent 87c7c03 commit 4ab95bcCopy full SHA for 4ab95bc
src/doc/rust.md
@@ -3136,8 +3136,12 @@ machine.
3136
3137
The types `char` and `str` hold textual data.
3138
3139
-A value of type `char` is a Unicode character,
3140
-represented as a 32-bit unsigned word holding a UCS-4 codepoint.
+A value of type `char` is a [Unicode scalar value](
+http://www.unicode.org/glossary/#unicode_scalar_value)
3141
+(ie. a code point that is not a surrogate),
3142
+represented as a 32-bit unsigned word in the 0x0000 to 0xD7FF
3143
+or 0xE000 to 0x10FFFF range.
3144
+A `[char]` vector is effectively an UCS-4 / UTF-32 string.
3145
3146
A value of type `str` is a Unicode string,
3147
represented as a vector of 8-bit unsigned bytes holding a sequence of UTF-8 codepoints.
0 commit comments