aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-10 14:12:41 +0100
committergingerBill <bill@gingerbill.org>2024-04-10 14:12:41 +0100
commitabd5fc606ceab4709983e919ec427a2070c3b0bb (patch)
treed11cd6d57ed4f148ec45b5441e8d3a27b67862a4
parent66782422809b03ae2c7f9ef349229590f127d621 (diff)
Fix #3407
-rw-r--r--core/fmt/fmt.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin
index 6f9801bc8..d3b9d7d69 100644
--- a/core/fmt/fmt.odin
+++ b/core/fmt/fmt.odin
@@ -2711,7 +2711,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
}
} else {
io.write_byte(fi.writer, '[' if verb != 'w' else '{', &fi.n)
- io.write_byte(fi.writer, ']' if verb != 'w' else '}', &fi.n)
+ defer io.write_byte(fi.writer, ']' if verb != 'w' else '}', &fi.n)
for i in 0..<info.count {
if i > 0 { io.write_string(fi.writer, ", ", &fi.n) }