Skip to content

Commit

Permalink
Say that it "may panic"
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored Apr 18, 2021
1 parent df01b3a commit c86ffe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/ops/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub trait Index<Idx: ?Sized> {
///
/// # Panics
///
/// Panics if the index is out of bounds.
/// May panic if the index is out of bounds.
#[stable(feature = "rust1", since = "1.0.0")]
#[track_caller]
fn index(&self, index: Idx) -> &Self::Output;
Expand Down Expand Up @@ -168,7 +168,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
///
/// # Panics
///
/// Panics if the index is out of bounds.
/// May panic if the index is out of bounds.
#[stable(feature = "rust1", since = "1.0.0")]
#[track_caller]
fn index_mut(&mut self, index: Idx) -> &mut Self::Output;
Expand Down

0 comments on commit c86ffe9

Please sign in to comment.