diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-07-02 15:26:38 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-07-02 15:26:38 -0400 |
commit | 0ad3eafc7a3401ce381c0a0d750ba3ac8d2b4321 (patch) | |
tree | a78e55754cbe69dc1d3f939b7011446d3fce9b64 | |
parent | 75b7dda523861b1b1f0cf06910f8bcaabd226ca3 (diff) | |
parent | 4780cc4e3b94624dab5fc8015bb683c2b41f0989 (diff) | |
download | rebar-0ad3eafc7a3401ce381c0a0d750ba3ac8d2b4321.tar.gz |
Merge pull request #521 from tuncer/fix-comment
rebar_utils: fix comment
-rw-r--r-- | src/rebar_utils.erl | 11 |
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. |