]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/str.rs
auto merge of #15638 : blake2-ppc/rust/ptr-arithmetic-chars, r=huonw
[rust.git] / src / libcollections / str.rs
index b0c8f17eecc74041f79cbe2f706abf151b9db24f..1e29679f8a79ec61c363c6f5ef68e846927ec5e6 100644 (file)
@@ -55,10 +55,10 @@ fn main() {
 
 # Representation
 
-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
-encoded UTF-8 sequences. Additionally, strings are not null-terminated
-and can contain null codepoints.
+Rust's string type, `str`, is a sequence of unicode scalar values encoded as a
+stream of UTF-8 bytes. All strings are guaranteed to be validly encoded UTF-8
+sequences. Additionally, strings are not null-terminated and can contain null
+bytes.
 
 The actual representation of strings have direct mappings to vectors: `&str`
 is the same as `&[u8]`.