Say that it "may panic"
This commit is contained in:
parent
df01b3a67b
commit
c86ffe9e89
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue