range(a, b).foo() -> (a..b).foo()
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
This commit is contained in:
parent
bedd8108dc
commit
c300d681bd
55 changed files with 122 additions and 122 deletions
|
|
@ -45,7 +45,7 @@ fn main() {
|
|||
let _ = write!(&mut File::create(&main_file).unwrap(),
|
||||
"#![feature(non_ascii_idents)] fn main() {{ {} }}",
|
||||
// random string of length n
|
||||
range(0, n).map(|_| random_char()).collect::<String>());
|
||||
(0..n).map(|_| random_char()).collect::<String>());
|
||||
}
|
||||
|
||||
// rustc is passed to us with --out-dir and -L etc., so we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue