This is an automated email from the ASF dual-hosted git repository.

nevime pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new d6fc77870 fix the doc of value_length (#1957)
d6fc77870 is described below

commit d6fc77870974e8d468689aab94179e738072314e
Author: Remzi Yang <[email protected]>
AuthorDate: Wed Jun 29 12:21:05 2022 +0800

    fix the doc of value_length (#1957)
    
    Signed-off-by: remzi <[email protected]>
---
 arrow/src/array/array_list.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arrow/src/array/array_list.rs b/arrow/src/array/array_list.rs
index 709e4e7ba..36ad30715 100644
--- a/arrow/src/array/array_list.rs
+++ b/arrow/src/array/array_list.rs
@@ -381,9 +381,9 @@ impl FixedSizeListArray {
         self.value_offset_at(self.data.offset() + i)
     }
 
-    /// Returns the length for value at index `i`.
+    /// Returns the length for an element.
     ///
-    /// Note this doesn't do any bound checking, for performance reason.
+    /// All elements have the same length as the array is a fixed size.
     #[inline]
     pub const fn value_length(&self) -> i32 {
         self.length

Reply via email to