Update comments
This commit is contained in:
@@ -1532,7 +1532,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn index(&self, index: I) -> &Self::Output {
|
fn index(&self, index: I) -> &Self::Output {
|
||||||
// NB built-in indexing via `&[T]`
|
// NB indexing via implementation on slice
|
||||||
&(**self)[index]
|
&(**self)[index]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1542,7 +1542,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {
|
|||||||
impl<T, I> IndexMut<I> for Vec<T> where [T]: IndexMut<I> {
|
impl<T, I> IndexMut<I> for Vec<T> where [T]: IndexMut<I> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn index_mut(&mut self, index: I) -> &mut Self::Output {
|
fn index_mut(&mut self, index: I) -> &mut Self::Output {
|
||||||
// NB built-in indexing via `&mut [T]`
|
// NB indexing via implementation on slice
|
||||||
&mut (**self)[index]
|
&mut (**self)[index]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user