Skip to content

Commit

Permalink
Add tracking issue number for Utf8Error::error_len
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Mar 14, 2017
1 parent b5f16a1 commit 73370c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit 73370c5

Please sign in to comment.