Skip to content

Commit 0eecd51

Browse files
committed
refactor: add reason string
1 parent 4cb9de4 commit 0eecd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ impl FromUtf8Error {
14181418
///
14191419
/// assert_eq!(&[0, 159], value.unwrap_err().as_bytes());
14201420
/// ```
1421-
#[unstable(feature = "from_utf8_error_as_bytes", issue = "40895")]
1421+
#[unstable(feature = "from_utf8_error_as_bytes", reason = "recently added", issue = "40895")]
14221422
pub fn as_bytes(&self) -> &[u8] {
14231423
&self.bytes[..]
14241424
}

0 commit comments

Comments
 (0)