Skip to content

Commit c86ffe9

Browse files
authored
Say that it "may panic"
1 parent df01b3a commit c86ffe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/ops/index.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub trait Index<Idx: ?Sized> {
6464
///
6565
/// # Panics
6666
///
67-
/// Panics if the index is out of bounds.
67+
/// May panic if the index is out of bounds.
6868
#[stable(feature = "rust1", since = "1.0.0")]
6969
#[track_caller]
7070
fn index(&self, index: Idx) -> &Self::Output;
@@ -168,7 +168,7 @@ pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
168168
///
169169
/// # Panics
170170
///
171-
/// Panics if the index is out of bounds.
171+
/// May panic if the index is out of bounds.
172172
#[stable(feature = "rust1", since = "1.0.0")]
173173
#[track_caller]
174174
fn index_mut(&mut self, index: Idx) -> &mut Self::Output;

0 commit comments

Comments
 (0)