Correct grammar; and remove redundant comment

This commit is contained in:
Srinivas Reddy Thatiparthy 2016-05-30 22:35:41 +05:30
parent 5da602bda3
commit 87bc04f45c

View File

@ -554,7 +554,6 @@ fn slice_index_order_fail(index: usize, end: usize) -> ! {
panic!("slice index starts at {} but ends at {}", index, end);
}
// FIXME implement indexing with inclusive ranges
/// Implements slicing with syntax `&self[begin .. end]`.
///
@ -622,7 +621,7 @@ fn index(&self, index: ops::RangeFrom<usize>) -> &[T] {
/// Implements slicing with syntax `&self[..]`.
///
/// Returns a slice of the whole slice. This operation can not panic.
/// Returns a slice of the whole slice. This operation cannot panic.
///
/// Equivalent to `&self[0 .. self.len()]`
#[stable(feature = "rust1", since = "1.0.0")]