summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-30 22:18:21 -0700
commit8672ce0c95bf5d6e6b721694bd0e5944d4af556b (patch)
treead54ebc4603c410cd9eb0b2f07cf133a701ff185 /lib/regex
parent7cc7912b2834f9f5dde95412e5302f13fb82042c (diff)
downloadmc-8672ce0c95bf5d6e6b721694bd0e5944d4af556b.tar.gz
Replace bio.status(@t) with std.result(@t, bio.err)
It's more consistent.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/redump.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/regex/redump.myr b/lib/regex/redump.myr
index e47b824..2cbb4ad 100644
--- a/lib/regex/redump.myr
+++ b/lib/regex/redump.myr
@@ -57,12 +57,12 @@ const runall = {re, files
const dump = {re, fd
while true
match bio.readln(fd)
- | `bio.Ok ln:
+ | `std.Ok ln:
show(re, ln, regex.exec(re, ln))
std.slfree(ln)
- | `bio.Eof:
+ | `std.Err `bio.Eof:
break
- | `bio.Err e:
+ | `std.Err e:
std.put("error reading from input: {}", e)
break
;;