From 971e0be77c53a4d97f7b50f59854770b651c7881 Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Fri, 30 Sep 2016 06:13:14 +0200 Subject: [PATCH] str: Fix documentation typo from_utf8 returns a Result, not an Option. Signed-off-by: David Henningsson --- 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 d63d2d64fe1..196750254af 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -132,7 +132,7 @@ impl Utf8Error { /// verified. /// /// It is the maximum index such that `from_utf8(input[..index])` - /// would return `Some(_)`. + /// would return `Ok(_)`. /// /// # Examples /// -- 2.44.0