Skip to content

Commit 331e565

Browse files
committed
Add a link to Erlang application specification, closes #13042
1 parent 0dc4d7d commit 331e565

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/elixir/lib/application.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ defmodule Application do
200200
In the sections above, we have configured an application in the
201201
`application/0` section of the `mix.exs` file. Ultimately, Mix will use
202202
this configuration to create an [*application resource
203-
file*](https://www.erlang.org/doc/man/application.html), which is a file called
203+
file*](https://www.erlang.org/doc/man/app), which is a file called
204204
`APP_NAME.app`. For example, the application resource file of the OTP
205205
application `ex_unit` is called `ex_unit.app`.
206206
@@ -467,6 +467,9 @@ defmodule Application do
467467
468468
* #{Enum.map_join(@application_keys, "\n * ", &"`#{inspect(&1)}`")}
469469
470+
For a description of all fields, see [Erlang's application
471+
specification](https://www.erlang.org/doc/man/app).
472+
470473
Note the environment is not returned as it can be accessed via
471474
`fetch_env/2`. Returns `nil` if the application is not loaded.
472475
"""

lib/mix/lib/mix/tasks/compile.app.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ defmodule Mix.Tasks.Compile.App do
7878
technically valid in any resource file, but it is only effective for
7979
applications with a callback module. Defaults to `:infinity`.
8080
81-
Besides the options above, `.app` files also expect other options like
82-
`:modules` and `:vsn`, but these are automatically added by Mix.
81+
Besides the options above, `.app` files also expect other options
82+
like `:modules` and `:vsn`, but these are automatically added by Mix.
83+
The complete list can be found on [Erlang's application
84+
specification](https://www.erlang.org/doc/man/app).
8385
8486
## Command line options
8587

0 commit comments

Comments
 (0)