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:
commit
79d3d26c2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue