Explorar o código

Fix typo in fmt

gingerBill %!s(int64=5) %!d(string=hai) anos
pai
achega
dc0f04e53b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;