From dce58baff0c4e23a5253f5b2e6df8904a85106de Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 10 Oct 2015 23:32:35 -0400 Subject: [PATCH] Trivial typo fix: from_utrf8 should be from_utf8 --- src/libcollections/string.rs | 2 +- src/libcore/str/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 271dbffcc2e..0815a2c4de9 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -381,7 +381,7 @@ impl String { /// Converts a vector of bytes to a `String` without checking that the /// string contains valid UTF-8. /// - /// See the safe version, [`from_utrf8()`][fromutf8], for more. + /// See the safe version, [`from_utf8()`][fromutf8], for more. /// /// [fromutf8]: struct.String.html#method.from_utf8 /// diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 57daa95e8c4..8039ac5e17b 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -243,7 +243,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { /// Converts a slice of bytes to a string slice without checking /// that the string contains valid UTF-8. /// -/// See the safe version, [`from_utrf8()`][fromutf8], for more. +/// See the safe version, [`from_utf8()`][fromutf8], for more. /// /// [fromutf8]: fn.from_utf8.html ///