Skip to content

Commit 971e0be

Browse files
committed
str: Fix documentation typo
from_utf8 returns a Result, not an Option. Signed-off-by: David Henningsson <[email protected]>
1 parent c717cfa commit 971e0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl Utf8Error {
132132
/// verified.
133133
///
134134
/// It is the maximum index such that `from_utf8(input[..index])`
135-
/// would return `Some(_)`.
135+
/// would return `Ok(_)`.
136136
///
137137
/// # Examples
138138
///

0 commit comments

Comments
 (0)