@@ -32,7 +32,7 @@ defmodule Macro do
3232 a valid call syntax.
3333
3434 This is useful for macros that want to provide the same
35- arguments syntax available in def/defp/defmacro and friends.
35+ argument syntax available in def/defp/defmacro and friends.
3636
3737 ## Examples
3838
@@ -50,7 +50,7 @@ defmodule Macro do
5050 Recursively escapes a value so it can be inserted
5151 into a syntax tree.
5252
53- One may pass `unquote: true` to `Macro. escape/2`
53+ One may pass `unquote: true` to `escape/2`
5454 which leaves unquote statements unescaped, effectively
5555 unquoting the contents on escape.
5656
@@ -118,7 +118,7 @@ defmodule Macro do
118118 def unescape_map(?v), do: ?\v
119119 def unescape_map(e), do: e
120120
121- If the `unescape_map` function returns false. The char is
121+ If the `unescape_map` function returns ` false` . The char is
122122 not escaped and `\` is kept in the char list.
123123
124124 ## Octals
@@ -128,7 +128,7 @@ defmodule Macro do
128128
129129 ## Hex
130130
131- Octals will by default be escaped unless the map function
131+ Hexadecimals will by default be escaped unless the map function
132132 returns false for ?x.
133133
134134 ## Examples
@@ -357,13 +357,13 @@ defmodule Macro do
357357
358358 * Macros (local or remote);
359359 * Aliases are expanded (if possible) and return atoms;
360- * All pseudo-variables (__FILE__, __MODULE__, etc);
361- * Module attributes reader (@foo);
360+ * All pseudo-variables (` __FILE__`, ` __MODULE__` , etc);
361+ * Module attributes reader (` @foo` );
362362
363363 In case the expression cannot be expanded, it returns the expression
364- itself. Notice that `Macro. expand_once/2` performs the expansion just
365- once and it is not recursive. Check `Macro. expand/2` for expansion
366- until the node no longer represents a macro and `Macro. expand_all/2`
364+ itself. Notice that `expand_once/2` performs the expansion just
365+ once and it is not recursive. Check `expand/2` for expansion
366+ until the node no longer represents a macro and `expand_all/2`
367367 for recursive expansion.
368368
369369 ## Examples
@@ -526,8 +526,8 @@ defmodule Macro do
526526
527527 @ doc """
528528 Receives a AST node and expands it until it no longer represents
529- a macro. Check `Macro. expand_once/2` for more information on how
530- expansion works and `Macro. expand_all/2` for recursive expansion.
529+ a macro. Check `expand_once/2` for more information on how
530+ expansion works and `expand_all/2` for recursive expansion.
531531 """
532532 def expand ( tree , env ) do
533533 expand ( tree , env , nil ) |> elem ( 0 )
@@ -550,16 +550,16 @@ defmodule Macro do
550550 Receives a AST node and expands it until it no longer represents
551551 a macro. Then it expands all of its children recursively.
552552
553- The documentation for `Macro. expand_once/2` goes into more detail
554- on how expansion works. Keep in mind that `Macro. expand_all/2` is
553+ The documentation for `expand_once/2` goes into more detail
554+ on how expansion works. Keep in mind that `expand_all/2` is
555555 naive as it doesn't mutate the environment. Take this example:
556556
557557 quoted = quote do: __MODULE__
558558 Macro.to_string Macro.expand_all(quoted, __ENV__)
559559 #=> "nil"
560560
561561 The example above, works as expected. Outside of a module,
562- `__MODULE__` returns nil. Now consider this variation:
562+ `__MODULE__` returns ` nil` . Now consider this variation:
563563
564564 quoted = quote do
565565 defmodule Foo, do: __MODULE__
@@ -604,8 +604,8 @@ defmodule Macro do
604604 end
605605
606606 @ doc """
607- Recurs the quoted expression checking if all sub terms are
608- safe (i.e. they represented data structured and don't actually
607+ Recurs the quoted expression checking if all sub- terms are
608+ safe (i.e. they represent data structures and don't actually
609609 evaluate code) and returns `:ok` unless a given term is unsafe,
610610 which is returned as `{ :unsafe, term }`.
611611 """
0 commit comments