diff options
Diffstat (limited to 'lib/bio/test/bio-peek.myr')
-rw-r--r-- | lib/bio/test/bio-peek.myr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bio/test/bio-peek.myr b/lib/bio/test/bio-peek.myr index 506dea0..a0f4752 100644 --- a/lib/bio/test/bio-peek.myr +++ b/lib/bio/test/bio-peek.myr @@ -28,11 +28,11 @@ const main = { const peekc = {f match bio.peekc(f) - | `bio.Ok c: -> c - | `bio.Eof: + | `std.Ok c: -> c + | `std.Err `bio.Eof: std.put("eof\n") -> -1 - | `bio.Err e: + | `std.Err e: std.fatal("error reading\n") -> -1 ;; @@ -40,11 +40,11 @@ const peekc = {f const peekb = {f match bio.peekb(f) - | `bio.Ok b: -> b - | `bio.Eof: + | `std.Ok b: -> b + | `std.Err `bio.Eof: std.put("eof\n") -> -1 - | `bio.Err e: + | `std.Err e: std.fatal("error reading\n") -> -1 ;; |