summaryrefslogtreecommitdiff
path: root/lib/inifile
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/inifile
parent6121d28dc28103cb85b22fe404daaa8c441790b4 (diff)
downloadmc-e83d16d5bd500b8e1913a836560f943a757ab86b.tar.gz
Rename `std.Fail to `std.Err.
Diffstat (limited to 'lib/inifile')
-rw-r--r--lib/inifile/parse.myr4
-rw-r--r--lib/inifile/test/inifile.myr2
-rw-r--r--lib/inifile/write.myr2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/inifile/parse.myr b/lib/inifile/parse.myr
index e5ace94..a44af72 100644
--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -20,7 +20,7 @@ type parser = struct
const load = {path
match std.open(path, std.Ordonly)
| `std.Ok fd: -> loadf(fd)
- | `std.Fail e: -> `std.Fail `Fileerr
+ | `std.Err e: -> `std.Err `Fileerr
;;
}
@@ -68,7 +68,7 @@ const loadf = {fd
-> `std.Ok ini
| `std.Some e:
free(ini)
- -> `std.Fail e
+ -> `std.Err e
;;
}
diff --git a/lib/inifile/test/inifile.myr b/lib/inifile/test/inifile.myr
index 98f34ac..4fd894f 100644
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -9,7 +9,7 @@ const main = {
const failopen = {
match inifile.load("figment-of-my-imagination.ini")
| `std.Ok _: std.die("found imaginary file\n")
- | `std.Fail _: /* as expected */
+ | `std.Err _: /* as expected */
;;
}
diff --git a/lib/inifile/write.myr b/lib/inifile/write.myr
index b8d8e90..deb3ccc 100644
--- a/lib/inifile/write.myr
+++ b/lib/inifile/write.myr
@@ -12,7 +12,7 @@ const write = {ini, path
var ret
match bio.create(path, bio.Wr, 0o666)
- | `std.Fail e: -> false
+ | `std.Err e: -> false
| `std.Ok f:
ret = writeini(f, ini)
bio.close(f)