Skip to content

Commit

Permalink
str: Fix documentation typo
Browse files Browse the repository at this point in the history
from_utf8 returns a Result, not an Option.

Signed-off-by: David Henningsson <diwic@ubuntu.com>
  • Loading branch information
diwic committed Sep 30, 2016
1 parent c717cfa commit 971e0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 971e0be

Please sign in to comment.