Skip to content

Commit

Permalink
Fix comments :facepalm
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Apr 26, 2024
1 parent d857cee commit 670d161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow-cast/src/cast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2288,8 +2288,8 @@ where

assert_eq!(views_builder.len(), len);

/// Safety: the input was a valid array so the data was UTF8 (if string) and all offsets were valid
/// and we created the views correctly
// Safety: the input was a valid array so it valid UTF8 (if string). And
// all offsets were valid and we created the views correctly
Ok(Arc::new(unsafe {
GenericByteViewArray::<V>::new_unchecked(
ScalarBuffer::new(views_builder.finish(), 0, len),
Expand Down

0 comments on commit 670d161

Please sign in to comment.