Skip to content

Commit

Permalink
Added panic message to docs. (#5857)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeRightThroughMe authored Jun 10, 2024
1 parent 087f34b commit 76d04a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arrow-schema/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit 76d04a8

Please sign in to comment.