diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-10 14:12:41 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-10 14:12:41 +0100 |
| commit | abd5fc606ceab4709983e919ec427a2070c3b0bb (patch) | |
| tree | d11cd6d57ed4f148ec45b5441e8d3a27b67862a4 /core/fmt | |
| parent | 66782422809b03ae2c7f9ef349229590f127d621 (diff) | |
Fix #3407
Diffstat (limited to 'core/fmt')
| -rw-r--r-- | core/fmt/fmt.odin | 2 |
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) } |