diff --git a/src/array/utf8/mod.rs b/src/array/utf8/mod.rs index f76b1bce4e8..c216ae0ab59 100644 --- a/src/array/utf8/mod.rs +++ b/src/array/utf8/mod.rs @@ -134,7 +134,7 @@ impl Utf8Array { /// Returns the value of the element at index `i`, ignoring the array's validity. /// # Panic - /// This function panics iff `i < self.len`. + /// This function panics iff `i >= self.len`. #[inline] pub fn value(&self, i: usize) -> &str { assert!(i < self.len());