From bc8495abd83f18fb9431b24681faa7f08e58a442 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Sun, 14 Feb 2016 17:52:05 +0000 Subject: [PATCH] Fix doc error for Utf8Error --- src/libcore/str/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")] -- 2.44.0