Skip to content

Commit 3434407

Browse files
rzezeskiRichard Carlsson
authored andcommitted
Add a proplist() type
Recently I was adding specs to an API and found that there is no canonical proplist() type defined.
1 parent 30179dd commit 3434407

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/edoc_specs.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
-include("edoc.hrl").
2828
-include("edoc_types.hrl").
2929

30-
-type proplist() :: [proplists:property()].
3130
-type syntaxTree() :: erl_syntax:syntaxTree().
3231

3332
-define(TOP_TYPE, term).
@@ -99,7 +98,7 @@ docs(Forms, CommentFun) ->
9998
-type entry() :: #entry{}.
10099
-type module_info() :: #module{}.
101100
-type entries() :: [entry()].
102-
-spec add_data(Entries::entries(), Options::proplist(),
101+
-spec add_data(Entries::entries(), Options::proplists:proplist(),
103102
File::file:filename(), Module::module_info()) -> entries().
104103

105104
%% @doc Create tags a la EDoc for Erlang specifications and types.

0 commit comments

Comments
 (0)