Fix doc error for Utf8Error

This commit is contained in:
Oliver Middleton 2016-02-14 17:52:05 +00:00
parent 36c00f8107
commit bc8495abd8

View File

@ -157,7 +157,7 @@ impl Utf8Error {
/// // std::str::from_utf8 returns a Utf8Error
/// let error = str::from_utf8(&sparkle_heart).unwrap_err();
///
/// // the first byte is invalid here
/// // the second byte is invalid here
/// assert_eq!(1, error.valid_up_to());
/// ```
#[stable(feature = "utf8_error", since = "1.5.0")]