Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 79d3d26

Browse files
Rollup merge of rust-lang#36849 - diwic:69-fromutf8-doc, r=alexcrichton
str: Fix documentation typo from_utf8 returns a Result, not an Option. Signed-off-by: David Henningsson [email protected]
2 parents ac968c4 + 971e0be commit 79d3d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
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)