This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new a00f9f43a0 Modify_inconsistency (#7190)
a00f9f43a0 is described below
commit a00f9f43a0530b9255e4f9940e43121deedb0cc7
Author: Yichi Zhang <[email protected]>
AuthorDate: Thu Feb 27 00:51:40 2025 +0800
Modify_inconsistency (#7190)
---
arrow-data/src/ffi.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrow-data/src/ffi.rs b/arrow-data/src/ffi.rs
index 04599bc47a..3b446ef255 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());