diff --git a/arrow-cast/src/cast/mod.rs b/arrow-cast/src/cast/mod.rs index b5b45f98feab..36072760ed07 100644 --- a/arrow-cast/src/cast/mod.rs +++ b/arrow-cast/src/cast/mod.rs @@ -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::::new_unchecked( ScalarBuffer::new(views_builder.finish(), 0, len),