Add tracking issue number for Utf8Error::error_len

This commit is contained in:
Simon Sapin 2017-03-13 23:54:06 +01:00
parent b5f16a10e9
commit 73370c543e
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ impl Utf8Error {
/// that starts at the index given by `valid_up_to()`.
/// Decoding should resume after that sequence
/// (after inserting a U+FFFD REPLACEMENT CHARACTER) in case of lossy decoding.
#[unstable(feature = "utf8_error_error_len", reason ="new", issue = "0")]
#[unstable(feature = "utf8_error_error_len", reason ="new", issue = "40494")]
pub fn error_len(&self) -> Option<usize> {
self.error_len.map(|len| len as usize)
}