about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2016-02-14 18:38:37 +0000
committerOliver Middleton <olliemail27@gmail.com>2016-02-14 18:38:37 +0000
commit9673ace3395c39d1605342b4cc5dcfe73f4468f2 (patch)
tree3a9a13b4284621b13b8ac475830484661d2ff888
parentbc8495abd83f18fb9431b24681faa7f08e58a442 (diff)
downloadrust-9673ace3395c39d1605342b4cc5dcfe73f4468f2.tar.gz
rust-9673ace3395c39d1605342b4cc5dcfe73f4468f2.zip
Fix a couple of issues in from_utf8 docs
-rw-r--r--src/libcore/str/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 1b0d0c8a2dc..4d367cfd432 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -174,10 +174,10 @@ impl Utf8Error {
 ///
 /// If you are sure that the byte slice is valid UTF-8, and you don't want to
 /// incur the overhead of the validity check, there is an unsafe version of
-/// this function, [`from_utf8_unchecked()`][fromutf8], which has the same
+/// this function, [`from_utf8_unchecked()`][fromutf8u], which has the same
 /// behavior but skips the check.
 ///
-/// [fromutf8]: fn.from_utf8.html
+/// [fromutf8u]: fn.from_utf8_unchecked.html
 ///
 /// If you need a `String` instead of a `&str`, consider
 /// [`String::from_utf8()`][string].
@@ -275,7 +275,7 @@ unsafe fn from_raw_parts_mut<'a>(p: *mut u8, len: usize) -> &'a mut str {
 /// Converts a slice of bytes to a string slice without checking
 /// that the string contains valid UTF-8.
 ///
-/// See the safe version, [`from_utf8()`][fromutf8], for more.
+/// See the safe version, [`from_utf8()`][fromutf8], for more information.
 ///
 /// [fromutf8]: fn.from_utf8.html
 ///