summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Tapia Rico <fertapric@gmail.com>2019-06-03 12:46:00 +0200
committerGitHub <noreply@github.com>2019-06-03 12:46:00 +0200
commit638d856d166491240e8f1b3a9860c7b21783482c (patch)
tree1a7cb349842d27641f5774a07e8a9771de9e6356
parentef127855d2df81d0888f85bb57fa9a0ec9f3b6cf (diff)
downloadelixir-fertapric-clarify-mod-attr.tar.gz
-rw-r--r--lib/elixir/lib/module.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elixir/lib/module.ex b/lib/elixir/lib/module.ex
index 5958b2362..95d4e3a6d 100644
--- a/lib/elixir/lib/module.ex
+++ b/lib/elixir/lib/module.ex
@@ -345,9 +345,9 @@ defmodule Module do
### Custom attributes
In addition to the built-in attributes outlined above, custom attributes may
- also be added. Custom attributes are expressed using the `@` operator followed
- by a variable. The value given to the custom attribute must be a valid Elixir
- value:
+ also be added. Custom attributes are expressed using the `@/1` operator followed
+ by a valid variable name. The value given to the custom attribute must be a valid
+ Elixir value:
defmodule MyModule do
@custom_attr [some: "stuff"]