1
Fork 0

for x in range(a, b) -> for x in a..b

sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
This commit is contained in:
Jorge Aparicio 2015-01-26 15:46:12 -05:00
parent c300d681bd
commit 7d661af9c8
155 changed files with 490 additions and 490 deletions

View file

@ -3513,7 +3513,7 @@ mod tests {
}
// Test up to 4 spaces of indents (more?)
for i in range(0, 4u) {
for i in 0..4u {
let mut writer = Vec::new();
write!(&mut writer, "{}",
super::as_pretty_json(&json).indent(i)).unwrap();
@ -3982,7 +3982,7 @@ mod tests {
fn big_json() -> string::String {
let mut src = "[\n".to_string();
for _ in range(0i, 500) {
for _ in 0i..500 {
src.push_str(r#"{ "a": true, "b": null, "c":3.1415, "d": "Hello world", "e": \
[1,2,3]},"#);
}