aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-06-23 18:21:25 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-06-24 18:40:45 +0200
commitea38d05051979018aec674b9726e133ee3e8146e (patch)
tree39510954205cc517e390564d4ebd8f9b58870a81
parent1af8998028f77b4ca01c52972a5983b072ef02d1 (diff)
downloadotp-ea38d05051979018aec674b9726e133ee3e8146e.tar.gz
otp-ea38d05051979018aec674b9726e133ee3e8146e.tar.bz2
otp-ea38d05051979018aec674b9726e133ee3e8146e.zip
compiler: Fix v3_core Maps pretty printing
Key and value were interchanged.
-rw-r--r--lib/compiler/src/core_pp.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/core_pp.erl b/lib/compiler/src/core_pp.erl
index 83412ecdd7..03801a9b6d 100644
--- a/lib/compiler/src/core_pp.erl
+++ b/lib/compiler/src/core_pp.erl
@@ -125,8 +125,8 @@ format_1(#c_literal{anno=A,val=M},Ctxt) when is_map(M) ->
_ -> assoc
end,
Cpairs = [#c_map_pair{op=#c_literal{val=Op},
- key=#c_literal{val=V},
- val=#c_literal{val=K}} || {K,V} <- Pairs],
+ key=#c_literal{val=K},
+ val=#c_literal{val=V}} || {K,V} <- Pairs],
format_1(#c_map{anno=A,arg=#c_literal{val=#{}},es=Cpairs},Ctxt);
format_1(#c_var{name={I,A}}, _) ->
[core_atom(I),$/,integer_to_list(A)];