From 956c5811111a02628d464d5c8d1be8eca06c5092 Mon Sep 17 00:00:00 2001 From: Jon Haddad Date: Sun, 7 Dec 2014 11:35:06 -0800 Subject: [PATCH] documentation incorrectly described from_utf8 Docs said from_utf8 accepts a vector when it actually accepts a slice of bytes. --- src/libcore/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]'