diff options
| author | Graydon Hoare <[email protected]> | 2010-06-30 02:30:17 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-06-30 02:30:17 -0700 |
| commit | 8e4a10790f388afcf75adc55c21139505ac0d3f8 (patch) | |
| tree | 5aac41608f7f248683845d26f143ab045335a2e9 /src/test | |
| parent | Tidy up (I think) a couple typos from patrick's last commit. (diff) | |
| download | rust-8e4a10790f388afcf75adc55c21139505ac0d3f8.tar.xz rust-8e4a10790f388afcf75adc55c21139505ac0d3f8.zip | |
rewrite 'mutable &' as '& mutable', corresponding to grammar shift.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/lazy-and-or.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/writealias.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/lazy-and-or.rs b/src/test/run-pass/lazy-and-or.rs index 81f09843..fe0ffe6b 100644 --- a/src/test/run-pass/lazy-and-or.rs +++ b/src/test/run-pass/lazy-and-or.rs @@ -1,4 +1,4 @@ -fn incr(mutable &int x) -> bool { +fn incr(& mutable int x) -> bool { x += 1; check (false); ret false; diff --git a/src/test/run-pass/writealias.rs b/src/test/run-pass/writealias.rs index 96b2a9d7..061b1b57 100644 --- a/src/test/run-pass/writealias.rs +++ b/src/test/run-pass/writealias.rs @@ -2,7 +2,7 @@ type point = rec(int x, int y, mutable int z); -fn f(mutable &point p) { +fn f(& mutable point p) { p.z = 13; } |