auto merge of #9462 : SimonSapin/rust/patch-3, r=huonw
This commit is contained in:
commit
b6fe27c9ab
|
@ -78,8 +78,8 @@ assert_eq!(buf, ~"testing 123");
|
||||||
|
|
||||||
Rust's string type, `str`, is a sequence of unicode codepoints encoded as a
|
Rust's string type, `str`, is a sequence of unicode codepoints encoded as a
|
||||||
stream of UTF-8 bytes. All safely-created strings are guaranteed to be validly
|
stream of UTF-8 bytes. All safely-created strings are guaranteed to be validly
|
||||||
encoded UTF-8 sequences. Additionally, strings are not guaranteed to be
|
encoded UTF-8 sequences. Additionally, strings are not null-terminated
|
||||||
null-terminated (the null byte is a valid unicode codepoint).
|
and can contain null codepoints.
|
||||||
|
|
||||||
The actual representation of strings have direct mappings to vectors:
|
The actual representation of strings have direct mappings to vectors:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue