From 6b5e5dafe9d41a99212c786c011dd6af2fbdcb5d Mon Sep 17 00:00:00 2001 From: Nathan Long Date: Fri, 6 Sep 2024 15:04:31 -0400 Subject: [PATCH 1/2] Link to docs --- lib/elixir/lib/module.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/elixir/lib/module.ex b/lib/elixir/lib/module.ex index 73367bccfc8..244736c334e 100644 --- a/lib/elixir/lib/module.ex +++ b/lib/elixir/lib/module.ex @@ -270,6 +270,9 @@ defmodule Module do a dependency on it, causing the module to be recompiled as soon as the file is added. + For more control over when a module is recompiled, see + [`__mix_recompile__?/0`](https://hexdocs.pm/mix/Mix.Tasks.Compile.Elixir.html#module-__mix_recompile__-0). + ### `@file` Changes the filename used in stacktraces for the function or macro that From 9833eba8f1d899f51926084782b06572e3586249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 6 Sep 2024 22:01:06 +0200 Subject: [PATCH 2/2] Update lib/elixir/lib/module.ex --- lib/elixir/lib/module.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/module.ex b/lib/elixir/lib/module.ex index 244736c334e..7436f2d58f1 100644 --- a/lib/elixir/lib/module.ex +++ b/lib/elixir/lib/module.ex @@ -271,7 +271,7 @@ defmodule Module do as the file is added. For more control over when a module is recompiled, see - [`__mix_recompile__?/0`](https://hexdocs.pm/mix/Mix.Tasks.Compile.Elixir.html#module-__mix_recompile__-0). + [`__mix_recompile__?/0`](`m:Mix.Tasks.Compile.Elixir#module-__mix_recompile__-0`). ### `@file`