Fix syntax error
This commit is contained in:
parent
8334977dcf
commit
a907d9aad2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue