Browse Source

Updated dict_to_string function for Simon

Yentl Van Tendeloo 7 years ago
parent
commit
2c7012c860
1 changed files with 2 additions and 1 deletions
  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 + "}"