Przeglądaj źródła

Fix typo in fmt

gingerBill 5 lat temu
rodzic
commit
dc0f04e53b
1 zmienionych plików z 1 dodań i 1 usunięć
  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;