Browse files

Clean up specs

  • Loading branch information...
1 parent 1b9f2a5 commit aec71f93cbcb13a3765b16209871769153af11e2 @tuncer tuncer committed Aug 6, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/rebar_asn1_compiler.erl
  2. +1 −1 src/rebar_erlc_compiler.erl
  3. +3 −3 src/rebar_file_utils.erl
View
4 src/rebar_asn1_compiler.erl
@@ -36,13 +36,13 @@
%% Public API
%% ===================================================================
--spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
compile(Config, _AppFile) ->
rebar_base_compiler:run(Config, filelib:wildcard("asn1/*.asn1"),
"asn1", ".asn1", "src", ".erl",
fun compile_asn1/3).
--spec clean(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec clean(rebar_config:config(), file:filename()) -> 'ok'.
clean(_Config, _AppFile) ->
GeneratedFiles = asn_generated_files("asn1", "src", "include"),
ok = rebar_file_utils:delete_each(GeneratedFiles),
View
2 src/rebar_erlc_compiler.erl
@@ -68,7 +68,7 @@
%% 'old_inets'}]}.
%%
--spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
compile(Config, _AppFile) ->
rebar_base_compiler:run(Config,
check_files(rebar_config:get_local(
View
6 src/rebar_file_utils.erl
@@ -39,7 +39,7 @@
%% @doc Remove files and directories.
%% Target is a single filename, directoryname or wildcard expression.
--spec rm_rf(Target::string()) -> ok.
+-spec rm_rf(string()) -> 'ok'.
rm_rf(Target) ->
case os:type() of
{unix, _} ->
@@ -56,7 +56,7 @@ rm_rf(Target) ->
ok
end.
--spec cp_r(Sources::list(string()), Dest::file:filename()) -> ok.
+-spec cp_r(list(string()), file:filename()) -> 'ok'.
cp_r([], _Dest) ->
ok;
cp_r(Sources, Dest) ->
@@ -73,7 +73,7 @@ cp_r(Sources, Dest) ->
ok
end.
--spec mv(Source::string(), Dest::file:filename()) -> ok.
+-spec mv(string(), file:filename()) -> 'ok'.
mv(Source, Dest) ->
case os:type() of
{unix, _} ->

0 comments on commit aec71f9

Please sign in to comment.