ref: 29b2ae95484477418cd73bf221d35468fbbbb9e9
parent: 6aab6b7b0d8fb0e37f7021f17714efbe02a227bb
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Nov 11 13:41:59 EST 2017
Fix bugs in fmt
--- a/lib/std/fmt.myr
+++ b/lib/std/fmt.myr
@@ -240,7 +240,7 @@
if ha == gotarg
std.slpush(&opts, (o, a))
else
- std.fatal("invalid arg for option {} ", a, o)
+ std.fatal("invalid arg {} for option {}", a, o)
;;
;;
if !found
@@ -436,6 +436,7 @@
| _: std.die("unreacahable")
;;
;;
+ std.slfree(opts)
if !joined
sbputs(sb, "[")