diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 2293e93eea72..3a285b7cffde 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -603,7 +603,7 @@ impl ops::Index> for [T] { #[inline] fn index(&self, index: ops::RangeToInclusive) -> &[T] { - // SNAP 3391630 change this to `0...index.end` + // SNAP 4d3eebf change this to `0...index.end` self.index(ops::RangeInclusive::NonEmpty { start: 0, end: index.end }) } } @@ -665,7 +665,7 @@ impl ops::IndexMut> for [T] { impl ops::IndexMut> for [T] { #[inline] fn index_mut(&mut self, index: ops::RangeToInclusive) -> &mut [T] { - // SNAP 3391630 change this to `0...index.end` + // SNAP 4d3eebf change this to `0...index.end` self.index_mut(ops::RangeInclusive::NonEmpty { start: 0, end: index.end }) } } diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 1c77ea84537c..d69ffebc0734 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -1488,7 +1488,7 @@ mod traits { #[inline] fn index(&self, index: ops::RangeToInclusive) -> &str { - // SNAP 3391630 change this to `0...index.end` + // SNAP 4d3eebf change this to `0...index.end` self.index(ops::RangeInclusive::NonEmpty { start: 0, end: index.end }) } } @@ -1514,7 +1514,7 @@ mod traits { impl ops::IndexMut> for str { #[inline] fn index_mut(&mut self, index: ops::RangeToInclusive) -> &mut str { - // SNAP 3391630 change this to `0...index.end` + // SNAP 4d3eebf change this to `0...index.end` self.index_mut(ops::RangeInclusive::NonEmpty { start: 0, end: index.end }) } }