Skip to content

Commit 35d0edb

Browse files
author
José Valim
committed
Make it clear module attributes are prepended, closes #872
1 parent ca45620 commit 35d0edb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elixir/lib/module.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ defmodule Module do
474474
When registering an attribute, two options can be given:
475475
476476
* `:accumulate` - Several calls to the same attribute will
477-
accumulate instead of override the previous one;
477+
accumulate instead of override the previous one. New attributes
478+
are always added to the top of the accumulated list.
478479
479480
* `:persist` - The attribute will be persisted in the Erlang
480481
Abstract Format. Useful when interfacing with Erlang libraries.

0 commit comments

Comments
 (0)