diff options
author | José Valim <jose.valim@dashbit.co> | 2021-12-05 14:30:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 14:30:04 +0100 |
commit | 74d61e0c8dfe99999edecbc4fc288eb2adaa0d21 (patch) | |
tree | a6dbaf7f9b1a1d5c594e718b259d08afbcc59532 | |
parent | 6f98831d8822b364d4d2184df4130fcaa7b95ff5 (diff) | |
download | elixir-74d61e0c8dfe99999edecbc4fc288eb2adaa0d21.tar.gz |
Update macro.ex
-rw-r--r-- | lib/elixir/lib/macro.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/elixir/lib/macro.ex b/lib/elixir/lib/macro.ex index c83c89e14..78c564495 100644 --- a/lib/elixir/lib/macro.ex +++ b/lib/elixir/lib/macro.ex @@ -420,6 +420,10 @@ defmodule Macro do Generates an AST node representing a unique variable given by the atoms `var` and `context`. + Calling this function with the same arguments will + generate another variable, with its own unique counter. + See `var/2` for an alternative. + ## Examples iex> {:foo, [counter: c], __MODULE__} = Macro.unique_var(:foo, __MODULE__) |