Skip to content

Commit

Permalink
Print out the escaped Value in PrtMap (#553)
Browse files Browse the repository at this point in the history
Currently, the escaped Key value for each entry in the map is printed
instead of the escaled Value; change it to print the Value as expected.
  • Loading branch information
lewisbru committed Jan 19, 2023
1 parent 8470c46 commit 4a37ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/PRuntimes/PCSharpRuntime/Values/PrtMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public string ToEscapedString()
foreach (KeyValuePair<IPrtValue, IPrtValue> value in map)
{
string k = value.Key == null ? "null" : value.Key.ToEscapedString();
string v = value.Value == null ? "null" : value.Key.ToEscapedString();
string v = value.Value == null ? "null" : value.Value.ToEscapedString();
sb.Append(sep);
sb.Append("<");
sb.Append(k);
Expand Down

0 comments on commit 4a37ab2

Please sign in to comment.