Skip to content

Commit 303b7c2

Browse files
committed
Fix markdown link for Utf8Error
1 parent f20b030 commit 303b7c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/str/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
318318
///
319319
/// assert_eq!("Hello, Rust!", outstr);
320320
/// ```
321-
///
321+
///
322322
/// Incorrect bytes:
323323
///
324324
/// ```
@@ -331,6 +331,8 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
331331
/// ```
332332
/// See the docs for [`Utf8Error`][error] for more details on the kinds of
333333
/// errors that can be returned.
334+
///
335+
/// [error]: struct.Utf8Error.html
334336
#[stable(feature = "str_mut_extras", since = "1.20.0")]
335337
pub fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> {
336338
run_utf8_validation(v)?;

0 commit comments

Comments
 (0)