Skip to content

Commit 26ddd46

Browse files
committed
Update comments
1 parent 3bcdb0f commit 26ddd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
15471547

15481548
#[inline]
15491549
fn index(&self, index: I) -> &Self::Output {
1550-
// NB built-in indexing via `&[T]`
1550+
// NB indexing via implementation on slice
15511551
&(**self)[index]
15521552
}
15531553
}
@@ -1557,7 +1557,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
15571557
impl<T, I> IndexMut<I> for Vec<T> where [T]: IndexMut<I> {
15581558
#[inline]
15591559
fn index_mut(&mut self, index: I) -> &mut Self::Output {
1560-
// NB built-in indexing via `&mut [T]`
1560+
// NB indexing via implementation on slice
15611561
&mut (**self)[index]
15621562
}
15631563
}

0 commit comments

Comments
 (0)