diff --git a/library/core/src/ops/index.rs b/library/core/src/ops/index.rs index 515ccd6aa2389..964378cc9c3c6 100644 --- a/library/core/src/ops/index.rs +++ b/library/core/src/ops/index.rs @@ -64,7 +64,7 @@ pub trait Index { /// /// # 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: Index { /// /// # 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;