diff options
| author | bors <bors@rust-lang.org> | 2014-11-22 20:36:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-22 20:36:40 +0000 |
| commit | 0d0a29061443852cae070b27d51de7cc69bbf293 (patch) | |
| tree | a2a266ae3b423a129d1a187b46ab155763ea1ce1 | |
| parent | caec7b0414ae8e6baa3ca4c3b3da4ec01d9091af (diff) | |
| parent | fb67b055061b8e41ca111a5897731bd0b70a7b63 (diff) | |
| download | rust-0d0a29061443852cae070b27d51de7cc69bbf293.tar.gz rust-0d0a29061443852cae070b27d51de7cc69bbf293.zip | |
auto merge of #19134 : sinistersnare/rust/patch-2, r=alexcrichton
Vec<T> can index now so its a useless conversion.
| -rw-r--r-- | src/libcore/str.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 8d26a970eb8..28d0dff25d2 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1858,7 +1858,6 @@ pub trait StrPrelude for Sized? { /// ```rust /// let string = "a\nb\nc"; /// let lines: Vec<&str> = string.lines().collect(); - /// let lines = lines.as_slice(); /// /// assert!(string.subslice_offset(lines[0]) == 0); // &"a" /// assert!(string.subslice_offset(lines[1]) == 2); // &"b" |
