summaryrefslogtreecommitdiff
path: root/src/rebar_utils.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2015-07-02 21:24:16 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2015-07-02 21:24:16 +0200
commit4780cc4e3b94624dab5fc8015bb683c2b41f0989 (patch)
treea78e55754cbe69dc1d3f939b7011446d3fce9b64 /src/rebar_utils.erl
parent75b7dda523861b1b1f0cf06910f8bcaabd226ca3 (diff)
downloadrebar-4780cc4e3b94624dab5fc8015bb683c2b41f0989.tar.gz
rebar_utils: fix comment
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r--src/rebar_utils.erl11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 045e67b..64595a2 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -804,12 +804,11 @@ rebar_now() ->
true ->
erlang:timestamp();
false ->
- %% erlang:now/0 was deprecated in 18.0, and as the escript has to
- %% pass erl_lint:module/1 (even without -mode(compile)), we would
- %% see a deprecation warning for erlang:now/0. One solution is to
- %% use -compile({nowarn_deprecated_function, [{erlang, now, 0}]}),
- %% but that would raise a warning in versions older than 18.0.
- %% Calling erlang:now/0 via apply/3 avoids that.
+ %% erlang:now/0 was deprecated in 18.0. One solution to avoid the
+ %% deprecation warning is to use
+ %% -compile({nowarn_deprecated_function, [{erlang, now, 0}]}), but
+ %% that would raise a warning in versions older than 18.0. Calling
+ %% erlang:now/0 via apply/3 avoids that.
apply(erlang, now, [])
end.