Fix markdown link for Utf8Error

This commit is contained in:
smt923 2017-09-10 14:12:23 +01:00
parent f20b030f02
commit 303b7c2410

View File

@ -318,7 +318,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
///
/// assert_eq!("Hello, Rust!", outstr);
/// ```
///
///
/// Incorrect bytes:
///
/// ```
@ -331,6 +331,8 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
/// ```
/// See the docs for [`Utf8Error`][error] for more details on the kinds of
/// errors that can be returned.
///
/// [error]: struct.Utf8Error.html
#[stable(feature = "str_mut_extras", since = "1.20.0")]
pub fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> {
run_utf8_validation(v)?;