Skip to content

Commit

Permalink
print Dicts with {} instead of []
Browse files Browse the repository at this point in the history
  • Loading branch information
StavromulaBeta authored Aug 18, 2024
1 parent 56af209 commit da722c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,9 @@ static STRING show_object (const ANY object, const _Bool raw_strings, char* buff
{
case NIL: throw_error("This shouldn't happen");
break;
case dict: sprintf(buffer, "[ "); buffer + strlen(buffer);
case dict: sprintf(buffer, "{ "); buffer + strlen(buffer);
buffer = show_dict(object.dict, buffer);
sprintf(buffer, "]"); buffer += strlen(buffer);
sprintf(buffer, "}"); buffer += strlen(buffer);
break;
case number: sprintf(buffer, "%.14g", object.number);
buffer += strlen(buffer);
Expand Down

0 comments on commit da722c4

Please sign in to comment.