From 5f995bfdc007c7f8c23d2b933a40627c1f311a04 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sun, 29 Jun 2014 20:15:43 +0200 Subject: Fix a few minor formatting inconsistencies * fix overlong lines * where appropriate use %% instead of % --- src/rebar_config.erl | 4 ++-- src/rebar_erlc_compiler.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 1c90d22..0127aff 100644 --- a/src/rebar_config.erl +++ b/src/rebar_config.erl @@ -40,10 +40,10 @@ -include("rebar.hrl"). -ifdef(namespaced_types). -% dict:dict() exists starting from Erlang 17. +%% dict:dict() exists starting from Erlang 17. -type rebar_dict() :: dict:dict(). -else. -% dict() has been obsoleted in Erlang 17 and deprecated in 18. +%% dict() has been obsoleted in Erlang 17 and deprecated in 18. -type rebar_dict() :: dict(). -endif. diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 376cde5..ae4503b 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -48,10 +48,10 @@ }). -ifdef(namespaced_types). -% digraph:digraph() exists starting from Erlang 17. +%% digraph:digraph() exists starting from Erlang 17. -type rebar_digraph() :: digraph:digraph(). -else. -% digraph() has been obsoleted in Erlang 17 and deprecated in 18. +%% digraph() has been obsoleted in Erlang 17 and deprecated in 18. -type rebar_digraph() :: digraph(). -endif. -- cgit v1.1 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