diff options
| author | bors <bors@rust-lang.org> | 2016-05-30 16:34:34 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-30 16:34:34 -0700 |
| commit | a967611d8ffececb5ed0ecf6a205b464d7a5a31e (patch) | |
| tree | 3bd045a4241c4ecc7045f11364142f5cc538a49a | |
| parent | b522b25a41967f7aa6694767dc85745692844259 (diff) | |
| parent | 87bc04f45c4c31abe6d95b6b33d5460676afdf81 (diff) | |
| download | rust-a967611d8ffececb5ed0ecf6a205b464d7a5a31e.tar.gz rust-a967611d8ffececb5ed0ecf6a205b464d7a5a31e.zip | |
Auto merge of #33968 - srinivasreddy:slice.rs, r=Manishearth
Correct grammar; and remove redundant comment
| -rw-r--r-- | src/libcore/slice.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index a0e978f783d..72d32607638 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -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 @@ 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")] |
