瀏覽代碼

rebar_utils: clean up specs

pull/3/head
Tuncer Ayaz 12 年之前
父節點
當前提交
870f8cfbb4
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      src/rebar_utils.erl

+ 1
- 2
src/rebar_utils.erl 查看文件

@ -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) ->

Loading…
取消
儲存