diff options
| author | Austin Seipp <as@hacks.yi.org> | 2012-01-09 19:15:17 -0600 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-09 19:27:05 -0800 |
| commit | a94b1ccacbc2869b6a67afcda98d7495c0086eb3 (patch) | |
| tree | 46c25968d972b54ef5acb86a7c18ed1bcf541f3e /src/test/stdtest | |
| parent | aeae04cb49a3af321e75f839d409768014bd5169 (diff) | |
| download | rust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.tar.gz rust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.zip | |
Change all uses of 'when' in alt-patterns to 'if'
Issue #1396
Diffstat (limited to 'src/test/stdtest')
| -rw-r--r-- | src/test/stdtest/math.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/stdtest/math.rs b/src/test/stdtest/math.rs index c8335718da9..adb68e4198c 100644 --- a/src/test/stdtest/math.rs +++ b/src/test/stdtest/math.rs @@ -251,7 +251,7 @@ fn test_sqrt() { fn test_angle() { fn angle(vec: (float, float)) -> float { alt vec { - (0f, y) when y < 0f { 1.5 * consts::pi } + (0f, y) if y < 0f { 1.5 * consts::pi } (0f, y) { 0.5 * consts::pi } (x, y) { float::atan(y / x) } } |
