Rollup merge of #36849 - diwic:69-fromutf8-doc, r=alexcrichton

str: Fix documentation typo

from_utf8 returns a Result, not an Option.

Signed-off-by: David Henningsson diwic@ubuntu.com
This commit is contained in:
Guillaume Gomez 2016-11-01 16:15:51 +01:00 committed by GitHub
commit 79d3d26c2e

View file

@ -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
///