about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2016-02-14 17:52:05 +0000
committerOliver Middleton <olliemail27@gmail.com>2016-02-14 17:52:05 +0000
commitbc8495abd83f18fb9431b24681faa7f08e58a442 (patch)
tree166aea81d13ffd9eaf84c2303eaf3fcf675a3dc6 /src
parent36c00f810722b2e6aebe0c4db3d3d90ade7a32d3 (diff)
downloadrust-bc8495abd83f18fb9431b24681faa7f08e58a442.tar.gz
rust-bc8495abd83f18fb9431b24681faa7f08e58a442.zip
Fix doc error for Utf8Error
Diffstat (limited to 'src')
-rw-r--r--src/libcore/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index fa169416a10..1b0d0c8a2dc 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -157,7 +157,7 @@ impl Utf8Error {
     /// // std::str::from_utf8 returns a Utf8Error
     /// let error = str::from_utf8(&sparkle_heart).unwrap_err();
     ///
-    /// // the first byte is invalid here
+    /// // the second byte is invalid here
     /// assert_eq!(1, error.valid_up_to());
     /// ```
     #[stable(feature = "utf8_error", since = "1.5.0")]