about summary refs log tree commit diff
path: root/library/core/src/str/iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/str/iter.rs')
-rw-r--r--library/core/src/str/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index bcf886484ad..d2985d8a186 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -52,7 +52,7 @@ impl<'a> Iterator for Chars<'a> {
         const CHUNK_SIZE: usize = 32;
 
         if remainder >= CHUNK_SIZE {
-            let mut chunks = self.iter.as_slice().array_chunks::<CHUNK_SIZE>();
+            let mut chunks = self.iter.as_slice().as_chunks::<CHUNK_SIZE>().0.iter();
             let mut bytes_skipped: usize = 0;
 
             while remainder > CHUNK_SIZE