@@ -97,7 +97,7 @@ pub mod structs {
9797 TakeWhileRef , TupleCombinations , Update , WhileSome ,
9898 } ;
9999 #[ cfg( feature = "use_alloc" ) ]
100- pub use crate :: array_chunks :: ArrayChunks ;
100+ pub use crate :: arrays :: Arrays ;
101101 #[ cfg( feature = "use_alloc" ) ]
102102 pub use crate :: combinations:: { ArrayCombinations , Combinations } ;
103103 #[ cfg( feature = "use_alloc" ) ]
@@ -174,7 +174,7 @@ pub use crate::with_position::Position;
174174pub use crate :: ziptuple:: multizip;
175175mod adaptors;
176176#[ cfg( feature = "use_alloc" ) ]
177- mod array_chunks ;
177+ mod arrays ;
178178mod either_or_both;
179179pub use crate :: either_or_both:: EitherOrBoth ;
180180#[ doc( hidden) ]
@@ -757,41 +757,41 @@ pub trait Itertools: Iterator {
757757 /// ```rust
758758 /// use itertools::Itertools;
759759 /// let mut v = Vec::new();
760- /// for [a, b] in (1..5).array_chunks () {
760+ /// for [a, b] in (1..5).arrays () {
761761 /// v.push([a, b]);
762762 /// }
763763 /// assert_eq!(v, vec![[1, 2], [3, 4]]);
764764 ///
765- /// let mut it = (1..9).array_chunks ();
765+ /// let mut it = (1..9).arrays ();
766766 /// assert_eq!(Some([1, 2, 3]), it.next());
767767 /// assert_eq!(Some([4, 5, 6]), it.next());
768768 /// assert_eq!(None, it.next());
769769 /// itertools::assert_equal(it.remainder(), [7,8]);
770770 ///
771771 /// // this requires a type hint
772- /// let it = (1..7).array_chunks ::<3>();
772+ /// let it = (1..7).arrays ::<3>();
773773 /// itertools::assert_equal(it, vec![[1, 2, 3], [4, 5, 6]]);
774774 ///
775775 /// // you can also specify the complete type
776- /// use itertools::ArrayChunks ;
776+ /// use itertools::Arrays ;
777777 /// use std::ops::Range;
778778 ///
779- /// let it: ArrayChunks <Range<u32>, 3> = (1..7).array_chunks ();
779+ /// let it: Arrays <Range<u32>, 3> = (1..7).arrays ();
780780 /// itertools::assert_equal(it, vec![[1, 2, 3], [4, 5, 6]]);
781781 /// ```
782782 ///
783783 /// ```compile_fail
784784 /// use itertools::Itertools;
785785 ///
786- /// let mut it = (1..5).array_chunks ::<0>();
786+ /// let mut it = (1..5).arrays ::<0>();
787787 /// assert_eq!(Some([]), it.next());
788788 /// ```
789789 #[ cfg( feature = "use_alloc" ) ]
790- fn array_chunks < const N : usize > ( self ) -> ArrayChunks < Self , N >
790+ fn arrays < const N : usize > ( self ) -> Arrays < Self , N >
791791 where
792792 Self : Sized ,
793793 {
794- ArrayChunks :: new ( self )
794+ Arrays :: new ( self )
795795 }
796796
797797 /// Return an iterator over all contiguous windows producing tuples of
0 commit comments