Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Jan 29, 2018
1 parent 3bcdb0f commit 26ddd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ impl<T, I> Index<I> for Vec<T> where [T]: Index<I> {

#[inline]
fn index(&self, index: I) -> &Self::Output {
// NB built-in indexing via `&[T]`
// NB indexing via implementation on slice
&(**self)[index]
}
}
Expand All @@ -1557,7 +1557,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> {
#[inline]
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]
}
}
Expand Down

0 comments on commit 26ddd46

Please sign in to comment.