summaryrefslogtreecommitdiff
path: root/support/dumpleak.myr
diff options
context:
space:
mode:
Diffstat (limited to 'support/dumpleak.myr')
-rw-r--r--support/dumpleak.myr12
1 files changed, 6 insertions, 6 deletions
diff --git a/support/dumpleak.myr b/support/dumpleak.myr
index 557e8aa..dcd6c07 100644
--- a/support/dumpleak.myr
+++ b/support/dumpleak.myr
@@ -50,11 +50,11 @@ const main = {args
const dump = {path, f, stats
while true
match bio.getle64(f)
- | `bio.Ok 0: tracealloc(path, f, stats)
- | `bio.Ok 1: tracefree(path, f, stats)
- | `bio.Eof: break
- | `bio.Ok wat: std.fatal("unknown action type {x}\n", wat)
- | `bio.Err e: std.fatal("failed to read {}: {}\n", path, e)
+ | `std.Err `bio.Eof: break
+ | `std.Ok 0: tracealloc(path, f, stats)
+ | `std.Ok 1: tracefree(path, f, stats)
+ | `std.Ok wat: std.fatal("unknown action type {x}\n", wat)
+ | `std.Err e: std.fatal("failed to read {}: {}\n", path, e)
;;
;;
if !summary
@@ -116,7 +116,7 @@ const dumptrace = {tab
const get64 = {path, f
match bio.getle64(f)
- | `bio.Ok v: -> v
+ | `std.Ok v: -> v
| res: std.fatal("failed to read {}: {}\n", path, res)
;;
}