rebar_utils: clean up specs

This commit is contained in:
Tuncer Ayaz 2012-08-06 18:52:33 +02:00
parent 70c82ba1c1
commit 870f8cfbb4

View file

@ -302,7 +302,7 @@ erl_opts(Config) ->
[debug_info|Opts] [debug_info|Opts]
end. end.
-spec src_dirs(SrcDirs::[string()]) -> [file:filename(), ...]. -spec src_dirs([string()]) -> [file:filename(), ...].
src_dirs([]) -> src_dirs([]) ->
["src"]; ["src"];
src_dirs(SrcDirs) -> src_dirs(SrcDirs) ->
@ -497,7 +497,6 @@ vcs_vsn_invoke(Cmd, Dir) ->
%% Filter a list of erl_opts platform_define options such that only %% Filter a list of erl_opts platform_define options such that only
%% those which match the provided architecture regex are returned. %% those which match the provided architecture regex are returned.
%% %%
-spec filter_defines(ErlOpts::list(), Acc::list()) -> list().
filter_defines([], Acc) -> filter_defines([], Acc) ->
lists:reverse(Acc); lists:reverse(Acc);
filter_defines([{platform_define, ArchRegex, Key} | Rest], Acc) -> filter_defines([{platform_define, ArchRegex, Key} | Rest], Acc) ->