Skip to content

Commit 4a216a0

Browse files
committed
s/alt/match/
1 parent c0e988f commit 4a216a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/run-pass/alt-ref-binding-mut.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ type rec = {
33
};
44

55
fn destructure(x: &mut rec) {
6-
alt *x {
6+
match *x {
77
{f: ref mut f} => *f += 1
88
}
99
}
@@ -12,4 +12,4 @@ fn main() {
1212
let mut v = {f: 22};
1313
destructure(&mut v);
1414
assert v.f == 23;
15-
}
15+
}

src/test/run-pass/alt-ref-binding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
fn destructure(x: option<int>) -> int {
2-
alt x {
2+
match x {
33
none => 0,
44
some(ref v) => *v
55
}
66
}
77

88
fn main() {
99
assert destructure(some(22)) == 22;
10-
}
10+
}

0 commit comments

Comments
 (0)