Skip to content

Commit a967611

Browse files
committed
Auto merge of #33968 - srinivasreddy:slice.rs, r=Manishearth
Correct grammar; and remove redundant comment
2 parents b522b25 + 87bc04f commit a967611

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/slice.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ fn slice_index_order_fail(index: usize, end: usize) -> ! {
554554
panic!("slice index starts at {} but ends at {}", index, end);
555555
}
556556

557-
// FIXME implement indexing with inclusive ranges
558557

559558
/// Implements slicing with syntax `&self[begin .. end]`.
560559
///
@@ -622,7 +621,7 @@ impl<T> ops::Index<ops::RangeFrom<usize>> for [T] {
622621

623622
/// Implements slicing with syntax `&self[..]`.
624623
///
625-
/// Returns a slice of the whole slice. This operation can not panic.
624+
/// Returns a slice of the whole slice. This operation cannot panic.
626625
///
627626
/// Equivalent to `&self[0 .. self.len()]`
628627
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)