Browse Source

Fix typo in fmt

gingerBill 5 năm trước cách đây
mục cha
commit
dc0f04e53b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/fmt/fmt.odin

+ 1 - 1
core/fmt/fmt.odin

@@ -1332,7 +1332,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
 		is_soa := info.soa_base_type != nil;
 
 		strings.write_byte(fi.buf, is_soa ? '[' : '{');
-		defer strings.write_byte(fi.buf, is_soa ? '[' : '}');
+		defer strings.write_byte(fi.buf, is_soa ? ']' : '}');
 
 		fi.indent += 1;  defer fi.indent -= 1;
 		hash := fi.hash; defer fi.hash = hash;