From 670d161f4005079ee53b8e5026f46ca9d96ce5fb Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Fri, 26 Apr 2024 11:44:46 -0400 Subject: [PATCH] Fix comments :facepalm --- arrow-cast/src/cast/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),