]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #28632 - alexcrichton:update-match-indices, r=Kimundi
authorbors <bors@rust-lang.org>
Sat, 26 Sep 2015 20:06:51 +0000 (20:06 +0000)
committerbors <bors@rust-lang.org>
Sat, 26 Sep 2015 20:06:51 +0000 (20:06 +0000)
This commit updates the `MatchIndices` and `RMatchIndices` iterators to follow
the same pattern as the `chars` and `char_indices` iterators. The `matches`
iterator currently yield `&str` elements, so the `MatchIndices` iterator now
yields the index of the match as well as the `&str` that matched (instead of
start/end indexes).

cc #27743

1  2 
src/libcore/str/mod.rs

Simple merge