Skip to content

Commit 7eb3c83

Browse files
committed
fix bad comment
1 parent cd5886f commit 7eb3c83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arrow-array/src/array/byte_view_array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)