File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ impl<T: ByteViewType + ?Sized> GenericByteViewArray<T> {
311311 }
312312
313313 /// Returns an iterator over the prefix bytes of this array with respect to the prefix length.
314- /// If the prefix length is larger than the string length, it will return the empty string .
314+ /// If the prefix length is larger than the string length, it will return the empty slice .
315315 pub fn prefix_bytes_iter ( & self , prefix_len : usize ) -> impl Iterator < Item = & [ u8 ] > {
316316 self . views ( ) . into_iter ( ) . map ( move |v| {
317317 let len = ( * v as u32 ) as usize ;
@@ -335,7 +335,7 @@ impl<T: ByteViewType + ?Sized> GenericByteViewArray<T> {
335335 }
336336
337337 /// Returns an iterator over the suffix bytes of this array with respect to the suffix length.
338- /// If the suffix length is larger than the string length, it will return the empty string .
338+ /// If the suffix length is larger than the string length, it will return the empty slice .
339339 pub fn suffix_bytes_iter ( & self , suffix_len : usize ) -> impl Iterator < Item = & [ u8 ] > {
340340 self . views ( ) . into_iter ( ) . map ( move |v| {
341341 let len = ( * v as u32 ) as usize ;
You can’t perform that action at this time.
0 commit comments