Skip to content

Module docs: make section references into links #14494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/elixir/lib/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ defmodule Module do
### `@after_compile`

A hook that will be invoked right after the current module is compiled.
Accepts a module or a `{module, function_name}`. See the "Compile callbacks"
Accepts a module or a `{module, function_name}`. See the ["Compile callbacks"](#module-compile-callbacks)
section below.

### `@after_verify` (since v1.14.0)

A hook that will be invoked right after the current module is verified for
undefined functions, deprecations, etc. Accepts a module or a `{module, function_name}`.
See the "Compile callbacks" section below.
See the ["Compile callbacks"](#module-compile-callbacks) section below.

### `@before_compile`

A hook that will be invoked before the module is compiled.
Accepts a module or a `{module, function_or_macro_name}` tuple.
See the "Compile callbacks" section below.
See the ["Compile callbacks"](#module-compile-callbacks) section below.

### `@behaviour`

Expand Down Expand Up @@ -124,7 +124,7 @@ defmodule Module do
### `@compile`

Defines options for module compilation. This is used to configure
both Elixir and Erlang compilers, as any other compilation pass
both Elixir and Erlang compilers, as well as any other compilation pass
added by external tools. For example:

defmodule MyModule do
Expand All @@ -136,7 +136,7 @@ defmodule Module do
end

Multiple uses of `@compile` will accumulate instead of overriding
previous ones. See the "Compile options" section below.
previous ones. See the ["Compile options"](#module-compile-options) section below.

### `@deprecated` (since v1.6.0)

Expand Down Expand Up @@ -726,7 +726,7 @@ defmodule Module do
@doc """
Returns information about module attributes used by Elixir.

See the "Module attributes" section in the module documentation for more
See the ["Module attributes"](#module-module-attributes) section in the module documentation for more
information on each attribute.

## Examples
Expand Down
Loading