Skip to content

Commit 462dc57

Browse files
authored
Clarify syntax for custom Module attributes (#9109)
1 parent 209b826 commit 462dc57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/elixir/lib/module.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ defmodule Module do
345345
### Custom attributes
346346
347347
In addition to the built-in attributes outlined above, custom attributes may
348-
also be added. A custom attribute is any valid identifier prefixed with an
349-
`@` and followed by a valid Elixir value:
348+
also be added. Custom attributes are expressed using the `@/1` operator followed
349+
by a valid variable name. The value given to the custom attribute must be a valid
350+
Elixir value:
350351
351352
defmodule MyModule do
352353
@custom_attr [some: "stuff"]

0 commit comments

Comments
 (0)