diff options
| author | varkor <github@varkor.com> | 2018-03-17 21:41:14 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-03-17 21:41:14 +0000 |
| commit | b57ea5615921609815752c2d2133956b8a4fded6 (patch) | |
| tree | 4b2dea2acb92262cd2f8f343574abfc4ff4dae5a /src/liballoc/string.rs | |
| parent | adf2135adc4a65a78ba053f04c29d7fe0468eb87 (diff) | |
| download | rust-b57ea5615921609815752c2d2133956b8a4fded6.tar.gz rust-b57ea5615921609815752c2d2133956b8a4fded6.zip | |
Stabilise FromUtf8Error::as_bytes
Closes #40895.
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 9fec9091498..e253122ffd6 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -1576,7 +1576,6 @@ impl FromUtf8Error { /// Basic usage: /// /// ``` - /// #![feature(from_utf8_error_as_bytes)] /// // some invalid bytes, in a vector /// let bytes = vec![0, 159]; /// @@ -1584,7 +1583,7 @@ impl FromUtf8Error { /// /// assert_eq!(&[0, 159], value.unwrap_err().as_bytes()); /// ``` - #[unstable(feature = "from_utf8_error_as_bytes", reason = "recently added", issue = "40895")] + #[stable(feature = "from_utf8_error_as_bytes", since = "1.26.0")] pub fn as_bytes(&self) -> &[u8] { &self.bytes[..] } |
