Skip to content

Commit 54cb2d9

Browse files
committed
update snapshot comments
1 parent 1530365 commit 54cb2d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/slice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ impl<T> ops::Index<ops::RangeToInclusive<usize>> for [T] {
603603

604604
#[inline]
605605
fn index(&self, index: ops::RangeToInclusive<usize>) -> &[T] {
606-
// SNAP 3391630 change this to `0...index.end`
606+
// SNAP 4d3eebf change this to `0...index.end`
607607
self.index(ops::RangeInclusive::NonEmpty { start: 0, end: index.end })
608608
}
609609
}
@@ -665,7 +665,7 @@ impl<T> ops::IndexMut<ops::RangeInclusive<usize>> for [T] {
665665
impl<T> ops::IndexMut<ops::RangeToInclusive<usize>> for [T] {
666666
#[inline]
667667
fn index_mut(&mut self, index: ops::RangeToInclusive<usize>) -> &mut [T] {
668-
// SNAP 3391630 change this to `0...index.end`
668+
// SNAP 4d3eebf change this to `0...index.end`
669669
self.index_mut(ops::RangeInclusive::NonEmpty { start: 0, end: index.end })
670670
}
671671
}

src/libcore/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ mod traits {
14881488

14891489
#[inline]
14901490
fn index(&self, index: ops::RangeToInclusive<usize>) -> &str {
1491-
// SNAP 3391630 change this to `0...index.end`
1491+
// SNAP 4d3eebf change this to `0...index.end`
14921492
self.index(ops::RangeInclusive::NonEmpty { start: 0, end: index.end })
14931493
}
14941494
}
@@ -1514,7 +1514,7 @@ mod traits {
15141514
impl ops::IndexMut<ops::RangeToInclusive<usize>> for str {
15151515
#[inline]
15161516
fn index_mut(&mut self, index: ops::RangeToInclusive<usize>) -> &mut str {
1517-
// SNAP 3391630 change this to `0...index.end`
1517+
// SNAP 4d3eebf change this to `0...index.end`
15181518
self.index_mut(ops::RangeInclusive::NonEmpty { start: 0, end: index.end })
15191519
}
15201520
}

0 commit comments

Comments
 (0)