We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f20b030 commit 303b7c2Copy full SHA for 303b7c2
src/libcore/str/mod.rs
@@ -318,7 +318,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
318
///
319
/// assert_eq!("Hello, Rust!", outstr);
320
/// ```
321
-///
+///
322
/// Incorrect bytes:
323
324
@@ -331,6 +331,8 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
331
332
/// See the docs for [`Utf8Error`][error] for more details on the kinds of
333
/// errors that can be returned.
334
335
+/// [error]: struct.Utf8Error.html
336
#[stable(feature = "str_mut_extras", since = "1.20.0")]
337
pub fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> {
338
run_utf8_validation(v)?;
0 commit comments