From: bors Date: Sat, 26 Sep 2015 20:06:51 +0000 (+0000) Subject: Auto merge of #28632 - alexcrichton:update-match-indices, r=Kimundi X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=54f7b1d455915794ab000448799c5092c57535c1;p=rust.git Auto merge of #28632 - alexcrichton:update-match-indices, r=Kimundi 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 --- 54f7b1d455915794ab000448799c5092c57535c1