about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 9c6b10c32f1..83538e5acd4 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -1532,7 +1532,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]
     }
 }
@@ -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> {
     #[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]
     }
 }