From c22370a2cbd99ab884aeb248faaf254f9c9ea9b0 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sun, 29 Jun 2014 21:03:26 +0200 Subject: Use correct types for OTP >=17.x --- src/rebar_config.erl | 2 +- src/rebar_erlc_compiler.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 0127aff..bdc3fb5 100644 --- a/src/rebar_config.erl +++ b/src/rebar_config.erl @@ -41,7 +41,7 @@ -ifdef(namespaced_types). %% dict:dict() exists starting from Erlang 17. --type rebar_dict() :: dict:dict(). +-type rebar_dict() :: dict:dict(term(), term()). -else. %% dict() has been obsoleted in Erlang 17 and deprecated in 18. -type rebar_dict() :: dict(). diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index ae4503b..f628433 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -48,8 +48,8 @@ }). -ifdef(namespaced_types). -%% digraph:digraph() exists starting from Erlang 17. --type rebar_digraph() :: digraph:digraph(). +%% digraph:graph() exists starting from Erlang 17. +-type rebar_digraph() :: digraph:graph(). -else. %% digraph() has been obsoleted in Erlang 17 and deprecated in 18. -type rebar_digraph() :: digraph(). -- cgit v1.1