Procházet zdrojové kódy

Updated dict_to_string function for Simon

Yentl Van Tendeloo před 7 roky
rodič
revize
2c7012c860
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      bootstrap/semi_primitives.alc

+ 2 - 1
bootstrap/semi_primitives.alc

@@ -245,7 +245,8 @@ String function dict_to_string(d : Element):
 		result = result + cast_v2s(key)
 		result = result + ": "
 		result = result + cast_v2s(dict_read_node(d, key))
-		result = result + ", "
+		if (set_len(keys) > 0):
+			result = result + ", "
 	
 	result = result + "}"