diff --git a/arrow-data/src/ffi.rs b/arrow-data/src/ffi.rs index 04599bc47a1c..3b446ef255fe 100644 --- a/arrow-data/src/ffi.rs +++ b/arrow-data/src/ffi.rs @@ -289,7 +289,7 @@ impl FFI_ArrowArray { /// Returns the buffer at the provided index /// /// # Panic - /// Panics if index exceeds the number of buffers or the buffer is not correctly aligned + /// Panics if index >= self.num_buffers() or the buffer is not correctly aligned #[inline] pub fn buffer(&self, index: usize) -> *const u8 { assert!(!self.buffers.is_null());