summaryrefslogtreecommitdiff
path: root/lib/std/try.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
committerOri Bernstein <ori@eigenstate.org>2016-08-27 15:55:36 -0700
commite83d16d5bd500b8e1913a836560f943a757ab86b (patch)
treeed88a93da5185122d16eec51086a053f0910b9a0 /lib/std/try.myr
parent6121d28dc28103cb85b22fe404daaa8c441790b4 (diff)
downloadmc-e83d16d5bd500b8e1913a836560f943a757ab86b.tar.gz
Rename `std.Fail to `std.Err.
Diffstat (limited to 'lib/std/try.myr')
-rw-r--r--lib/std/try.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/try.myr b/lib/std/try.myr
index 4fdda95..ade5a19 100644
--- a/lib/std/try.myr
+++ b/lib/std/try.myr
@@ -12,14 +12,14 @@ pkg std =
generic try = {v
match v
| `Ok x: -> x
- | `Fail m: fatal("error: {}\n", m)
+ | `Err m: fatal("error: {}\n", m)
;;
}
generic tryv = {v, d
match v
| `Ok x: -> x
- | `Fail m: -> d
+ | `Err m: -> d
;;
}