Skip to content

Commit

Permalink
Correct grammar; and remove redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed May 30, 2016
1 parent 5da602b commit 87bc04f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcore/slice.rs
Expand Up @@ -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]`.
///
Expand Down Expand Up @@ -622,7 +621,7 @@ impl<T> ops::Index<ops::RangeFrom<usize>> for [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")]
Expand Down

0 comments on commit 87bc04f

Please sign in to comment.