We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d06ee8 commit 8da48afCopy full SHA for 8da48af
lib/elixir/lib/module.ex
@@ -1511,9 +1511,14 @@ defmodule Module do
1511
end
1512
1513
@doc """
1514
- Deletes the module attribute that matches the given key.
+ Deletes the entry (or entries) for the given module attribute.
1515
1516
- It returns the deleted attribute value (or `nil` if nothing was set).
+ It returns the deleted attribute value. If the attribute has not
1517
+ been set nor configured to accumulate, it returns `nil`.
1518
+
1519
+ If the attribute is set to accumulate, then this function always
1520
+ returns a list. Deleting the attribute removes existing entries
1521
+ but the attribute will still accumulate.
1522
1523
## Examples
1524
0 commit comments