From: Oliver Middleton Date: Sun, 14 Feb 2016 17:52:05 +0000 (+0000) Subject: Fix doc error for Utf8Error X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=bc8495abd83f18fb9431b24681faa7f08e58a442;p=rust.git Fix doc error for Utf8Error --- 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")]