Skip to content

Commit b6800b8

Browse files
authored
Remove obsolete doc about :generated option in quote/1 (#12571)
Add a more detailed explanation instead.
1 parent 1ede648 commit b6800b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ defmodule Kernel.SpecialForms do
837837
* `:context` - sets the resolution context.
838838
839839
* `:generated` - marks the given chunk as generated so it does not emit warnings.
840-
Currently it only works on special forms (for example, you can annotate a `case`
841-
but not an `if`).
840+
It is also useful to avoid dialyzer reporting errors when macros generate
841+
unused clauses.
842842
843843
* `:file` - sets the quoted expressions to have the given file.
844844

0 commit comments

Comments
 (0)