aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_pp.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-03-09 08:19:14 +0000
committerErlang/OTP <[email protected]>2010-03-09 08:19:14 +0000
commit96015189f40635d0f617eed2b6d4d6ee773e1fd5 (patch)
tree44902e01c285ec84fd67dfd7873c41ec86e64bd7 /lib/stdlib/src/erl_pp.erl
parent36dab22b34d33e1fb8f22af9131d2b33aa97bbd5 (diff)
downloadotp-96015189f40635d0f617eed2b6d4d6ee773e1fd5.tar.gz
otp-96015189f40635d0f617eed2b6d4d6ee773e1fd5.tar.bz2
otp-96015189f40635d0f617eed2b6d4d6ee773e1fd5.zip
OTP-8501 stdlib: erl_pp no longer quotes atoms in types
The erlang pretty printer (erl_pp) no longer quotes atoms in types.
Diffstat (limited to 'lib/stdlib/src/erl_pp.erl')
-rw-r--r--lib/stdlib/src/erl_pp.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_pp.erl b/lib/stdlib/src/erl_pp.erl
index 93c2541e80..0859bf0466 100644
--- a/lib/stdlib/src/erl_pp.erl
+++ b/lib/stdlib/src/erl_pp.erl
@@ -170,8 +170,7 @@ ltype({type,Line,T,Ts}) ->
ltype({remote_type,Line,[M,F,Ts]}) ->
simple_type({remote,Line,M,F}, Ts);
ltype({atom,_,T}) ->
- %% Follow the convention to always quote atoms (in types):
- leaf([$',atom_to_list(T),$']);
+ leaf(write(T));
ltype(E) ->
lexpr(E, 0, none).