summaryrefslogtreecommitdiff
path: root/lib/inifile/parse.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inifile/parse.myr')
-rw-r--r--lib/inifile/parse.myr8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/inifile/parse.myr b/lib/inifile/parse.myr
index e2490c2..6b9be91 100644
--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -18,7 +18,7 @@ type parser = struct
;;
const load = {path
- match std.open(path, std.Ordonly)
+ match std.open(path, std.Oread)
| `std.Ok fd: -> loadf(fd)
| `std.Err e: -> `std.Err `Fileerr
;;
@@ -54,13 +54,13 @@ const loadf = {fd
f = bio.mkfile(fd, bio.Rd)
while true
match bio.readln(f)
- | `bio.Eof:
+ | `std.Err `bio.Eof:
break
- | `bio.Ok ln:
+ | `std.Ok ln:
if !parseline(p, ini, ln)
break
;;
- | `bio.Err e:
+ | `std.Err e:
p.err = `std.Some `Fileerr
break
;;