aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edoc
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-11-14 14:15:14 +0100
committerHans Bolinder <[email protected]>2017-11-14 14:15:14 +0100
commitdd53a1425f859d8558133fea141528c5c4476f0d (patch)
treebe9710015b53f8529c4e20d4025cdf06d6ee982b /lib/edoc
parent8c42d5dc4f85d540c53cf24c85de6372c89ec486 (diff)
downloadotp-dd53a1425f859d8558133fea141528c5c4476f0d.tar.gz
otp-dd53a1425f859d8558133fea141528c5c4476f0d.tar.bz2
otp-dd53a1425f859d8558133fea141528c5c4476f0d.zip
edoc: The map type is denoted map()
The map type was erroneously displayed as "#{}", the empty map type.
Diffstat (limited to 'lib/edoc')
-rw-r--r--lib/edoc/src/edoc_specs.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/edoc/src/edoc_specs.erl b/lib/edoc/src/edoc_specs.erl
index fb04bfce0e..4e45e42f20 100644
--- a/lib/edoc/src/edoc_specs.erl
+++ b/lib/edoc/src/edoc_specs.erl
@@ -372,7 +372,7 @@ d2e({type,_,binary,[Base,Unit]}, _Prec) ->
{integer,_,U} = erl_eval:partial_eval(Unit),
#t_binary{base_size = B, unit_size = U};
d2e({type,_,map,any}, _Prec) ->
- #t_map{types = []};
+ #t_type{name = #t_name{name = map}, args = []};
d2e({type,_,map,Es}, _Prec) ->
#t_map{types = d2e(Es) };
d2e({type,_,map_field_assoc,[K,V]}, Prec) ->