summaryrefslogtreecommitdiff
path: root/src/rebar_app_info.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r--src/rebar_app_info.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index 5f44004..be35f79 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -36,7 +36,7 @@
app_file_src :: file:name() | undefined,
app_file :: file:name(),
config :: rebar_config:config() | undefined,
- original_vsn :: string(),
+ original_vsn :: string() | undefined,
app_details=[] :: list(),
deps=[] :: list(),
dep_level :: integer(),
@@ -47,7 +47,7 @@
%%============================================================================
%% types
%%============================================================================
--opaque t() :: record(app_info_t).
+-type t() :: record(app_info_t).
%%============================================================================
%% API
@@ -186,7 +186,7 @@ dir(AppInfo=#app_info_t{}, Dir) ->
ebin_dir(#app_info_t{dir=Dir}) ->
filename:join(Dir, "ebin").
--spec source(t(), string()) -> t().
+-spec source(t(), string() | tuple()) -> t().
source(AppInfo=#app_info_t{}, Source) ->
AppInfo#app_info_t{source=Source}.