Skip to content

Commit

Permalink
Rollup merge of rust-lang#36849 - diwic:69-fromutf8-doc, r=alexcrichton
Browse files Browse the repository at this point in the history
str: Fix documentation typo

from_utf8 returns a Result, not an Option.

Signed-off-by: David Henningsson diwic@ubuntu.com
  • Loading branch information
GuillaumeGomez committed Nov 1, 2016
2 parents ac968c4 + 971e0be commit 79d3d26
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 79d3d26

Please sign in to comment.