aboutsummaryrefslogtreecommitdiff
path: root/test/cases/switch_prong_err_enum.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-07 16:51:46 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-07 16:53:13 -0500
commit66717db735b9ddac9298bf08fcf95e7e11629fee (patch)
tree54dea549c62d851da9269b09eba8e596450ee330 /test/cases/switch_prong_err_enum.zig
parentde1f57926f212f18a98884fa8b1d0df7f7bc7f03 (diff)
downloadzig-66717db735b9ddac9298bf08fcf95e7e11629fee.tar.gz
zig-66717db735b9ddac9298bf08fcf95e7e11629fee.zip
replace `%return` with `try`
See #632 better fits the convention of using keywords for control flow
Diffstat (limited to 'test/cases/switch_prong_err_enum.zig')
-rw-r--r--test/cases/switch_prong_err_enum.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cases/switch_prong_err_enum.zig b/test/cases/switch_prong_err_enum.zig
index be15193c74..90aa4a4d44 100644
--- a/test/cases/switch_prong_err_enum.zig
+++ b/test/cases/switch_prong_err_enum.zig
@@ -16,7 +16,7 @@ const FormValue = union(enum) {
fn doThing(form_id: u64) -> %FormValue {
return switch (form_id) {
- 17 => FormValue { .Address = %return readOnce() },
+ 17 => FormValue { .Address = try readOnce() },
else => error.InvalidDebugInfo,
};
}