summaryrefslogtreecommitdiff
path: root/lib/std/slurp.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/slurp.myr
parent6121d28dc28103cb85b22fe404daaa8c441790b4 (diff)
downloadmc-e83d16d5bd500b8e1913a836560f943a757ab86b.tar.gz
Rename `std.Fail to `std.Err.
Diffstat (limited to 'lib/std/slurp.myr')
-rw-r--r--lib/std/slurp.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/slurp.myr b/lib/std/slurp.myr
index c0e417c..a966e4a 100644
--- a/lib/std/slurp.myr
+++ b/lib/std/slurp.myr
@@ -16,7 +16,7 @@ const Bufstart = 4096
const slurp = {path
var sl
match open(path, Ordonly)
- | `Fail e: -> `Fail e
+ | `Err e: -> `Err e
| `Ok fd:
sl = fslurp(fd)
close(fd)
@@ -41,9 +41,9 @@ const fslurp = {fd
bufsz *= 2
slgrow(&buf, bufsz)
;;
- | `Fail e:
+ | `Err e:
slfree(buf)
- -> `Fail e
+ -> `Err e
;;
;;
die("unreachable")