Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1f4c630
Make method Vec::remove() public
Mar 18, 2014
1607871
rustc: disallow duplicate methods in trait impls
emberian Mar 18, 2014
f9e0baa
remove duplicate methods in impls
emberian Mar 18, 2014
873f740
rustc: test: don't silently ignore bad benches
emberian Mar 18, 2014
92f0bc2
rustc: buffer the output writer for -Z ast-json[-noexpand].
huonw Mar 18, 2014
87c7c03
syntax: Don't parameterize the the pretty printer
alexcrichton Mar 18, 2014
4ab95bc
`char`: s/character/Unicode scalar value/
SimonSapin Mar 18, 2014
083d423
Move syntax-extension-hexfloat.rs
Mar 18, 2014
3301223
Fix linkage1 test which fails due to --as-needed
Mar 17, 2014
c800c98
rustc: remove linker_private/linker_private_weak
bnoordhuis Mar 16, 2014
8f7a797
rustc: remove obsolete linkage types
bnoordhuis Mar 17, 2014
20e178c
libsyntax: librustdoc: ignore utf-8 BOM in .rs files
liigo Mar 18, 2014
2265512
closes #12967 fix [en|de]coding of HashMap<K,V> where K is a numeric …
olsonjeffery Mar 17, 2014
e627bce
Add impl IntoStr for ::std::vec_ng::Vec<Ascii>
Kroisse Mar 17, 2014
175bf94
deny missing docs
alan-andrade Mar 17, 2014
c297cff
Documentation and formatting changes for option.rs.
hatahet Mar 17, 2014
168cd3a
Relaxed the memory ordering on the implementation of UnsafeArc
Mar 17, 2014
783a00e
Typo fixes.
lkuper Mar 17, 2014
d717d61
Docsprint: Document ops module, primarily Deref.
mcpherrinm Mar 16, 2014
848f7b7
rustdoc: Implement cross-crate searching
alexcrichton Mar 16, 2014
1135966
Made the `clone_from` implementation for `~T` reuse the `T` itself if
Kimundi Mar 18, 2014
2a5e04c
Test fixes from the rollup
alexcrichton Mar 18, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
char: s/character/Unicode scalar value/
Tweak the definition of `char` to use the appropriate Unicode terminology.
  • Loading branch information
SimonSapin authored and alexcrichton committed Mar 18, 2014
commit 4ab95bcf20e8ecee4bef874bcf552829cfc9567c
8 changes: 6 additions & 2 deletions src/doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -3136,8 +3136,12 @@ machine.

The types `char` and `str` hold textual data.

A value of type `char` is a Unicode character,
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)
(ie. a code point that is not a surrogate),
represented as a 32-bit unsigned word in the 0x0000 to 0xD7FF
or 0xE000 to 0x10FFFF range.
A `[char]` vector is effectively an UCS-4 / UTF-32 string.

A value of type `str` is a Unicode string,
represented as a vector of 8-bit unsigned bytes holding a sequence of UTF-8 codepoints.
Expand Down