We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c00f8 commit bc8495aCopy full SHA for bc8495a
src/libcore/str/mod.rs
@@ -157,7 +157,7 @@ impl Utf8Error {
157
/// // std::str::from_utf8 returns a Utf8Error
158
/// let error = str::from_utf8(&sparkle_heart).unwrap_err();
159
///
160
- /// // the first byte is invalid here
+ /// // the second byte is invalid here
161
/// assert_eq!(1, error.valid_up_to());
162
/// ```
163
#[stable(feature = "utf8_error", since = "1.5.0")]
0 commit comments