Skip to content

Commit 433a46a

Browse files
author
José Valim
committed
Merge pull request #2089 from jwarwick/module_docs
Fixed doc typos in Module
2 parents 75de306 + b2fb6c9 commit 433a46a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/elixir/lib/module.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule Module do
1111
documentation, add, delete and register attributes and so forth.
1212
1313
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
1515
to inspect runtime data. Most of the runtime data can be inspected
1616
via the `__info__(attr)` function attached to each compiled module.
1717
@@ -51,7 +51,7 @@ defmodule Module do
5151
When just a module is provided, the function/macro is assumed to be
5252
`__before_compile__/1`.
5353
54-
Note: differently from `@after_compile`, the callback function/macro must
54+
Note: unlike `@after_compile`, the callback function/macro must
5555
be placed in a separate module (because when the callback is invoked,
5656
the current module does not yet exist).
5757
@@ -184,7 +184,7 @@ defmodule Module do
184184
If the function/macro being defined has multiple clauses, the hook will
185185
be called for each clause.
186186
187-
Differently from other hooks, `@on_definition` will only invoke functions
187+
Unlike other hooks, `@on_definition` will only invoke functions
188188
and never macros. This is because the hook is invoked inside the context
189189
of the function (and nested function definitions are not allowed in
190190
Elixir).
@@ -318,7 +318,7 @@ defmodule Module do
318318
Evaluates the quoted contents in the given module's context.
319319
320320
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.
322322
323323
Raises an error if the module was already compiled.
324324
@@ -671,7 +671,7 @@ defmodule Module do
671671
@doc """
672672
Makes the given functions in `module` overridable.
673673
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
675675
more information and documentation.
676676
"""
677677
def make_overridable(module, tuples) do
@@ -711,7 +711,7 @@ defmodule Module do
711711
@doc """
712712
Puts an Erlang attribute to the given module with the given
713713
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`.
715715
716716
## Examples
717717
@@ -741,7 +741,7 @@ defmodule Module do
741741

742742
@doc """
743743
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`,
745745
a list is always returned.
746746
747747
The `@` macro compiles to a call to this function. For example,

0 commit comments

Comments
 (0)