aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-09-07 07:20:05 +0200
committerBjörn Gustavsson <[email protected]>2016-09-26 16:20:39 +0200
commit3d9bbd259a7f8e29becf65476bf3bd8a32ad374e (patch)
tree2e79ae703c2a74b1860a725332e2439d2f6b9f09 /lib/compiler/src
parent87d051421ed813801c1f7fdeb7d6aaffefd31572 (diff)
downloadotp-3d9bbd259a7f8e29becf65476bf3bd8a32ad374e.tar.gz
otp-3d9bbd259a7f8e29becf65476bf3bd8a32ad374e.tar.bz2
otp-3d9bbd259a7f8e29becf65476bf3bd8a32ad374e.zip
core_pp: Correct printing of map updates
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/core_pp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/core_pp.erl b/lib/compiler/src/core_pp.erl
index 67209d06be..cff6c7098b 100644
--- a/lib/compiler/src/core_pp.erl
+++ b/lib/compiler/src/core_pp.erl
@@ -179,7 +179,7 @@ format_1(#c_tuple{es=Es}, Ctxt) ->
format_hseq(Es, ",", add_indent(Ctxt, 1), fun format/2),
$}
];
-format_1(#c_map{arg=#c_literal{anno=[],val=M},es=Es}, Ctxt)
+format_1(#c_map{arg=#c_literal{val=M},es=Es}, Ctxt)
when is_map(M), map_size(M) =:= 0 ->
["~{",
format_hseq(Es, ",", add_indent(Ctxt, 1), fun format/2),