about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDavid Henningsson <diwic@ubuntu.com>2016-09-30 06:13:14 +0200
committerDavid Henningsson <diwic@ubuntu.com>2016-09-30 06:13:14 +0200
commit971e0be77c53a4d97f7b50f59854770b651c7881 (patch)
tree04e54753474e359d6e6cb09045912c81e2436776 /src
parentc717cfa7c1640a65ea9198e52265a3bc12449b88 (diff)
str: Fix documentation typo
from_utf8 returns a Result, not an Option.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
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 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
     ///