Skip to content

Commit 45bdf9c

Browse files
committed
Update comments
1 parent 2db05f0 commit 45bdf9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
15321532

15331533
#[inline]
15341534
fn index(&self, index: I) -> &Self::Output {
1535-
// NB built-in indexing via `&[T]`
1535+
// NB indexing via implementation on slice
15361536
&(**self)[index]
15371537
}
15381538
}
@@ -1542,7 +1542,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
15421542
impl<T, I> IndexMut<I> for Vec<T> where [T]: IndexMut<I> {
15431543
#[inline]
15441544
fn index_mut(&mut self, index: I) -> &mut Self::Output {
1545-
// NB built-in indexing via `&mut [T]`
1545+
// NB indexing via implementation on slice
15461546
&mut (**self)[index]
15471547
}
15481548
}

0 commit comments

Comments
 (0)