diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-09 09:25:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-09 09:25:09 -0800 |
| commit | 1cbb07507e6a29e28e27cd290d397d191ace2f47 (patch) | |
| tree | 59272ba9e875e9e30ba7064b4244e088ecc6a991 /src | |
| parent | 21e5efb43ca8bcd854d2560ee7806b8f2d4eaf09 (diff) | |
| parent | 956c5811111a02628d464d5c8d1be8eca06c5092 (diff) | |
| download | rust-1cbb07507e6a29e28e27cd290d397d191ace2f47.tar.gz rust-1cbb07507e6a29e28e27cd290d397d191ace2f47.zip | |
rollup merge of #19623: rustyrazorblade/patch-1
Docs said from_utf8 accepts a vector when it actually accepts an array of bytes.
Diffstat (limited to 'src')
| -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 8f9eeaddfb5..baa739b0683 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]' |
