Skip to content

Commit a907d9a

Browse files
committed
Fix syntax error
1 parent 8334977 commit a907d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ impl<I: Iterator<Item = u8>> Iterator for DecodeUtf8<I> {
905905

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

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

0 commit comments

Comments
 (0)