@@ -11,7 +11,7 @@ defmodule Module do
11
11
documentation, add, delete and register attributes and so forth.
12
12
13
13
After a module is compiled, using many of the functions in
14
- this module will raise errors, since it is out of their purpose
14
+ this module will raise errors, since it is out of their scope
15
15
to inspect runtime data. Most of the runtime data can be inspected
16
16
via the `__info__(attr)` function attached to each compiled module.
17
17
@@ -51,7 +51,7 @@ defmodule Module do
51
51
When just a module is provided, the function/macro is assumed to be
52
52
`__before_compile__/1`.
53
53
54
- Note: differently from `@after_compile`, the callback function/macro must
54
+ Note: unlike `@after_compile`, the callback function/macro must
55
55
be placed in a separate module (because when the callback is invoked,
56
56
the current module does not yet exist).
57
57
@@ -184,7 +184,7 @@ defmodule Module do
184
184
If the function/macro being defined has multiple clauses, the hook will
185
185
be called for each clause.
186
186
187
- Differently from other hooks, `@on_definition` will only invoke functions
187
+ Unlike other hooks, `@on_definition` will only invoke functions
188
188
and never macros. This is because the hook is invoked inside the context
189
189
of the function (and nested function definitions are not allowed in
190
190
Elixir).
@@ -318,7 +318,7 @@ defmodule Module do
318
318
Evaluates the quoted contents in the given module's context.
319
319
320
320
A list of environment options can also be given as argument.
321
- See `Code.eval_string` for more information.
321
+ See `Code.eval_string/3 ` for more information.
322
322
323
323
Raises an error if the module was already compiled.
324
324
@@ -671,7 +671,7 @@ defmodule Module do
671
671
@ doc """
672
672
Makes the given functions in `module` overridable.
673
673
An overridable function is lazily defined, allowing a
674
- developer to customize it. See `Kernel.defoverridable` for
674
+ developer to customize it. See `Kernel.defoverridable/1 ` for
675
675
more information and documentation.
676
676
"""
677
677
def make_overridable ( module , tuples ) do
@@ -711,7 +711,7 @@ defmodule Module do
711
711
@ doc """
712
712
Puts an Erlang attribute to the given module with the given
713
713
key and value. The semantics of putting the attribute depends
714
- if the attribute was registered or not via `register_attribute/2 `.
714
+ if the attribute was registered or not via `register_attribute/3 `.
715
715
716
716
## Examples
717
717
@@ -741,7 +741,7 @@ defmodule Module do
741
741
742
742
@ doc """
743
743
Gets the given attribute from a module. If the attribute
744
- was marked with `accumulate` with `Module.register_attribute`,
744
+ was marked with `accumulate` with `Module.register_attribute/3 `,
745
745
a list is always returned.
746
746
747
747
The `@` macro compiles to a call to this function. For example,
0 commit comments