about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorJonathan Behrens <fintelia@gmail.com>2018-01-29 15:02:44 -0500
committerJonathan Behrens <fintelia@gmail.com>2018-03-02 23:25:52 -0500
commit45bdf9cbeec3788c29d8958dc661dd449bb7247c (patch)
tree2dc5dcc8930fa9a0ba0f28d3b7b154a0e8972ca3 /src/liballoc/vec.rs
parent2db05f04bebd8a8cfbdb323fbd6d3341aee551d9 (diff)
downloadrust-45bdf9cbeec3788c29d8958dc661dd449bb7247c.tar.gz
rust-45bdf9cbeec3788c29d8958dc661dd449bb7247c.zip
Update comments
Diffstat (limited to 'src/liballoc/vec.rs')
-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]
     }
 }