diff --git a/arrow-schema/src/schema.rs b/arrow-schema/src/schema.rs index ede158fcf248..3bb076aa54b0 100644 --- a/arrow-schema/src/schema.rs +++ b/arrow-schema/src/schema.rs @@ -331,6 +331,10 @@ impl Schema { /// Returns an immutable reference of a specific [`Field`] instance selected using an /// offset within the internal `fields` vector. + /// + /// # Panics + /// + /// Panics if index out of bounds pub fn field(&self, i: usize) -> &Field { &self.fields[i] }