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

5 comments on commit 4aee7b2

@bors
Copy link
Contributor

@bors bors 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.

saw approval from huonw
at SimonSapin@4aee7b2

@bors
Copy link
Contributor

@bors bors 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.

merging SimonSapin/rust/patch-3 = 4aee7b2 into auto

@bors
Copy link
Contributor

@bors bors 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.

SimonSapin/rust/patch-3 = 4aee7b2 merged ok, testing candidate = b6fe27c

@bors
Copy link
Contributor

@bors bors commented on 4aee7b2 Sep 24, 2013

@bors
Copy link
Contributor

@bors bors 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.

fast-forwarding master to auto = b6fe27c

Please sign in to comment.