]> git.lizzy.rs Git - rust.git/commitdiff
Fix doc error for Utf8Error
authorOliver Middleton <olliemail27@gmail.com>
Sun, 14 Feb 2016 17:52:05 +0000 (17:52 +0000)
committerOliver Middleton <olliemail27@gmail.com>
Sun, 14 Feb 2016 17:52:05 +0000 (17:52 +0000)
src/libcore/str/mod.rs

index fa169416a1081ab6042fe2327ae8f71e99b8cb54..1b0d0c8a2dcaa2c6098045131e4bed1aa698758d 100644 (file)
@@ -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")]