Skip to content

Commit 8cd40f9

Browse files
pcwaltonemberian
authored andcommitted
libstd: Fix merge fallout.
1 parent f463e69 commit 8cd40f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libstd/str.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ impl<'self> Iterator<(uint, uint)> for StrMatchesIndexIterator<'self> {
357357
fn next(&mut self) -> Option<(uint, uint)> {
358358
// See Issue #1932 for why this is a naive search
359359
let (h_len, n_len) = (self.haystack.len(), self.needle.len());
360-
let mut (match_start, match_i) = (0, 0);
360+
let mut match_start = 0;
361+
let mut match_i = 0;
361362

362363
while self.position < h_len {
363364
if self.haystack[self.position] == self.needle[match_i] {
@@ -685,7 +686,7 @@ pub fn count_chars(s: &str, start: uint, end: uint) -> uint {
685686
/// Counts the number of bytes taken by the first `n` chars in `s`
686687
/// starting from `start`.
687688
pub fn count_bytes<'b>(s: &'b str, start: uint, n: uint) -> uint {
688-
assert!(is_char_boundary(s, start));
689+
assert!(s.is_char_boundary(start));
689690
let mut end = start;
690691
let mut cnt = n;
691692
let l = s.len();

0 commit comments

Comments
 (0)