diff --git a/library/core/src/ops/index.rs b/library/core/src/ops/index.rs index 2c62a3930c281..d12e301aa1da7 100644 --- a/library/core/src/ops/index.rs +++ b/library/core/src/ops/index.rs @@ -56,7 +56,7 @@ #[doc(alias = "[")] #[doc(alias = "[]")] #[rustc_const_unstable(feature = "const_index", issue = "143775")] -pub const trait Index { +pub const trait Index { /// The returned type after indexing. #[stable(feature = "rust1", since = "1.0.0")] #[rustc_diagnostic_item = "IndexOutput"] @@ -167,7 +167,7 @@ see chapter in The Book : [const] Index { +pub const trait IndexMut: [const] Index { /// Performs the mutable indexing (`container[index]`) operation. /// /// # Panics