Skip to content

Commit

Permalink
Do not imply that str is sometimes null-terminated.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Sep 24, 2013
1 parent 85ca934 commit 4aee7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/str.rs
Expand Up @@ -78,8 +78,8 @@ assert_eq!(buf, ~"testing 123");
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 guaranteed to be
null-terminated (the null byte is a valid unicode codepoint).
encoded UTF-8 sequences. Additionally, strings are not null-terminated
and can contain null codepoints.
The actual representation of strings have direct mappings to vectors:
Expand Down

1 comment on commit 4aee7b2

@huonw
Copy link

@huonw huonw commented on 4aee7b2 Sep 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.