We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b522b25 + 87bc04f commit a967611Copy full SHA for a967611
src/libcore/slice.rs
@@ -554,7 +554,6 @@ fn slice_index_order_fail(index: usize, end: usize) -> ! {
554
panic!("slice index starts at {} but ends at {}", index, end);
555
}
556
557
-// FIXME implement indexing with inclusive ranges
558
559
/// Implements slicing with syntax `&self[begin .. end]`.
560
///
@@ -622,7 +621,7 @@ impl<T> ops::Index<ops::RangeFrom<usize>> for [T] {
622
621
623
/// Implements slicing with syntax `&self[..]`.
624
625
-/// Returns a slice of the whole slice. This operation can not panic.
+/// Returns a slice of the whole slice. This operation cannot panic.
626
627
/// Equivalent to `&self[0 .. self.len()]`
628
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments