about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJon Haddad <jon@jonhaddad.com>2014-12-07 11:35:06 -0800
committerJon Haddad <jon@jonhaddad.com>2014-12-07 22:57:40 -0800
commit956c5811111a02628d464d5c8d1be8eca06c5092 (patch)
tree697b8add65b312a3af02b5fbf5d327d1a482b77d /src/libcore
parent83a44c7fa676b4e5e546ce3d4624e585f9a1e899 (diff)
downloadrust-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.rs2
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]'