Skip to content

Commit 4aee7b2

Browse files
committed
Do not imply that str is sometimes null-terminated.
1 parent 85ca934 commit 4aee7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ assert_eq!(buf, ~"testing 123");
7878
7979
Rust's string type, `str`, is a sequence of unicode codepoints encoded as a
8080
stream of UTF-8 bytes. All safely-created strings are guaranteed to be validly
81-
encoded UTF-8 sequences. Additionally, strings are not guaranteed to be
82-
null-terminated (the null byte is a valid unicode codepoint).
81+
encoded UTF-8 sequences. Additionally, strings are not null-terminated
82+
and can contain null codepoints.
8383
8484
The actual representation of strings have direct mappings to vectors:
8585

0 commit comments

Comments
 (0)