diff options
| author | Jon Haddad <jon@jonhaddad.com> | 2014-12-07 11:35:06 -0800 |
|---|---|---|
| committer | Jon Haddad <jon@jonhaddad.com> | 2014-12-07 22:57:40 -0800 |
| commit | 956c5811111a02628d464d5c8d1be8eca06c5092 (patch) | |
| tree | 697b8add65b312a3af02b5fbf5d327d1a482b77d /src/libcore | |
| parent | 83a44c7fa676b4e5e546ce3d4624e585f9a1e899 (diff) | |
| download | rust-956c5811111a02628d464d5c8d1be8eca06c5092.tar.gz rust-956c5811111a02628d464d5c8d1be8eca06c5092.zip | |
documentation incorrectly described from_utf8
Docs said from_utf8 accepts a vector when it actually accepts a slice of bytes.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 1d59567cbe4..f81356938ea 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -76,7 +76,7 @@ impl FromStr for bool { Section: Creating a string */ -/// Converts a vector to a string slice without performing any allocations. +/// Converts a slice of bytes to a string slice without performing any allocations. /// /// Once the slice has been validated as utf-8, it is transmuted in-place and /// returned as a '&str' instead of a '&[u8]' |
