diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-08 13:20:27 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-08 13:20:27 +0000 |
| commit | 0f83ab466fc733094bfe46bb2915ad54b67957a6 (patch) | |
| tree | 56bee090b09339829d9e7b7ecf42e0b92cf117f3 /core | |
| parent | 5ff6a25bdc4a4f05e9b16d8c34bd57fabc1d642b (diff) | |
Minor change to spacing when printing a map
Diffstat (limited to 'core')
| -rw-r--r-- | core/fmt/fmt.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index e3e7a2bb5..02803f882 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -2814,10 +2814,10 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) { value := runtime.map_cell_index_dynamic(vs, info.map_info.vs, bucket_index) fmt_arg(&Info{writer = fi.writer}, any{rawptr(key), info.key.id}, verb) - if verb == 'v' { - io.write_string(fi.writer, "=", &fi.n) - } else { + if hash { io.write_string(fi.writer, " = ", &fi.n) + } else { + io.write_string(fi.writer, "=", &fi.n) } fmt_arg(fi, any{rawptr(value), info.value.id}, verb) |