We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bcdb0f commit 26ddd46Copy full SHA for 26ddd46
src/liballoc/vec.rs
@@ -1547,7 +1547,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
1547
1548
#[inline]
1549
fn index(&self, index: I) -> &Self::Output {
1550
- // NB built-in indexing via `&[T]`
+ // NB indexing via implementation on slice
1551
&(**self)[index]
1552
}
1553
@@ -1557,7 +1557,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
1557
impl<T, I> IndexMut<I> for Vec<T> where [T]: IndexMut<I> {
1558
1559
fn index_mut(&mut self, index: I) -> &mut Self::Output {
1560
- // NB built-in indexing via `&mut [T]`
1561
&mut (**self)[index]
1562
1563
0 commit comments