Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlifoobar committed Aug 28, 2024
1 parent 76ca2ee commit a255da7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arrow-array/src/array/byte_view_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ impl<T: ByteViewType + ?Sized> GenericByteViewArray<T> {

/// Returns an iterator over the prefix bytes of this array with respect to the prefix length.
/// If the prefix length is larger than the string length, it will return None.
///
/// Note for null views, it returns None.
pub fn prefix_bytes_iter(&self, prefix_len: usize) -> impl Iterator<Item = Option<&[u8]>> {
self.views().into_iter().map(move |v| {
let len = (*v as u32) as usize;
Expand Down

0 comments on commit a255da7

Please sign in to comment.