Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlosioneer committed Mar 25, 2018
1 parent 8334977 commit a907d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/char.rs
Expand Up @@ -905,7 +905,7 @@ impl<I: Iterator<Item = u8>> Iterator for DecodeUtf8<I> {

#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
let len = self.iter.len();
let len = self.0.len();

// A code point is at most 4 bytes long.
let min_code_points = len / 4;
Expand Down

0 comments on commit a907d9a

Please sign in to comment.