RIMOV, round 7

find ./ -type f -name "*.rs" -exec sed -i "s/ mut \([a-zA-Z_]\+\):
~\[mut / mut \1: ~\[/g" {} \;
This commit is contained in:
Ben Striegel 2013-01-29 22:12:36 -05:00
parent 1c9b5a83b2
commit b4f47eca2a
5 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ fn main() {
// Note: explicit type annot is required here
// because otherwise the inference gets smart
// and assigns a type of ~[mut ~[const int]].
let mut v: ~[mut ~[mut int]] = ~[~[0]];
let mut v: ~[~[mut int]] = ~[~[0]];
fn f(&&v: ~[mut ~[const int]]) {
v[0] = ~[3]

View file

@ -12,7 +12,7 @@ fn main() {
// Note: explicit type annot is required here
// because otherwise the inference gets smart
// and assigns a type of ~[mut ~[const int]].
let mut v: ~[mut ~[mut ~[int]]] = ~[~[~[0]]];
let mut v: ~[~[mut ~[int]]] = ~[~[~[0]]];
fn f(&&v: ~[mut ~[mut ~[const int]]]) {
v[0][1] = ~[mut 3]