Skip to content

Commit 89f651f

Browse files
author
José Valim
committed
Improve docs for Macro.expand/2
1 parent f3f2481 commit 89f651f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/macro.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,11 +754,11 @@ defmodule Macro do
754754
defp do_expand_once(other, _env), do: { other, false }
755755

756756
@doc """
757-
Receives an AST node and expands it until it no longer represents
758-
a macro.
757+
Receives an AST node and expands it until it can no longer
758+
be expanded.
759759
760-
Check `expand_once/2` for more information on how
761-
expansion works.
760+
This function uses `expand_once/2` under the hood. Check
761+
`expand_once/2` for more information and exmaples.
762762
"""
763763
def expand(tree, env) do
764764
expand_until({ tree, true }, env)

0 commit comments

Comments
 (0)