Skip to content

Commit 999366e

Browse files
authored
fix: consumed (and exported) type (#4)
1 parent 6d85758 commit 999366e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/merlin_bindings.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
%% can be found.
9090
%%
9191
%% @see annotate/2
92-
-spec annotate(merlin:ast()) -> merlin:ast().
92+
-spec annotate(merlin:ast() | [merlin:ast()]) -> merlin:ast() | [merlin:ast()].
9393
annotate(Nodes) when is_list(Nodes) ->
9494
lists:map(fun annotate/1, Nodes);
9595
annotate(Node) ->
@@ -103,7 +103,7 @@ annotate(Node) ->
103103
%% point.
104104
%%
105105
%% @see erl_syntax_lib:annotate_bindings/2
106-
-spec annotate(merlin:ast(), bindings()) -> merlin:ast().
106+
-spec annotate(merlin:ast() | [merlin:ast()], bindings()) -> merlin:ast() | [merlin:ast()].
107107
annotate(Nodes, EnvBindings) when is_list(Nodes) ->
108108
[annotate(Node, EnvBindings) || Node <- Nodes];
109109
annotate(Node, EnvBindings) ->

0 commit comments

Comments
 (0)