This commit is contained in:
Sinh Pham 2015-10-08 22:49:16 -07:00
parent 3ca8d3677a
commit f075fd01ab
3 changed files with 6 additions and 2 deletions

View File

@ -395,7 +395,7 @@ impl<'a, T, I, F1, F2, F3> Iterator for ListItems<'a, I, F1, F2, F3>
separator_index + 1)
}
// Potential *single* line comment.
(_, Some(j)) => j + 1,
(_, Some(j)) if j > separator_index => j + 1,
_ => post_snippet.len(),
}
}

View File

@ -108,4 +108,7 @@ fn main() {
let rc = RefCell::new(42usize,remaining_width, remaining_width); // a comment
let x = "Hello!!!!!!!!! abcd abcd abcd abcd abcd abcd\n abcd abcd abcd abcd abcd abcd abcd abcd abcd \
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd \
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd"; }
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd";
let s = expand(a
,
b); }

View File

@ -139,4 +139,5 @@ fn main() {
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd \
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd \
abcd abcd";
let s = expand(a, b);
}