Skip to content

Commit

Permalink
documentation incorrectly described from_utf8
Browse files Browse the repository at this point in the history
Docs said from_utf8 accepts a vector when it actually accepts a slice of bytes.
  • Loading branch information
rustyrazorblade committed Dec 8, 2014
1 parent 83a44c7 commit 956c581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str.rs
Expand Up @@ -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]'
Expand Down

0 comments on commit 956c581

Please sign in to comment.