summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEksperimental <eksperimental@users.noreply.github.com>2018-07-11 14:56:47 +0700
committerJosé Valim <jose.valim@gmail.com>2018-07-11 09:56:47 +0200
commitf2ff2c8c8c1fcd191c467ad11099ff2ca158fbf1 (patch)
tree5ada29ad0850520ecca5a878cfcc2f23e43f618b
parentc6ffbe9fe518ab6fdfa5621fd65633c9a157db36 (diff)
downloadelixir-f2ff2c8c8c1fcd191c467ad11099ff2ca158fbf1.tar.gz
General corrections (#7870)
* Modules/types are mentioned in singular, not plural * General improvements in the documentation
-rw-r--r--lib/elixir/lib/agent.ex2
-rw-r--r--lib/elixir/lib/gen_server.ex12
-rw-r--r--lib/elixir/lib/io/ansi/docs.ex2
-rw-r--r--lib/elixir/lib/kernel.ex4
-rw-r--r--lib/elixir/lib/task.ex2
-rw-r--r--lib/elixir/pages/Compatibility and Deprecations.md2
-rw-r--r--lib/ex_unit/lib/ex_unit/doc_test.ex4
-rw-r--r--lib/iex/lib/iex/helpers.ex2
-rw-r--r--lib/logger/lib/logger.ex2
-rw-r--r--lib/logger/lib/logger/formatter.ex4
-rw-r--r--lib/mix/lib/mix/config.ex4
-rw-r--r--lib/mix/lib/mix/tasks/compile.app.ex6
-rw-r--r--lib/mix/lib/mix/tasks/compile.ex2
-rw-r--r--lib/mix/lib/mix/tasks/escript.build.ex2
14 files changed, 25 insertions, 25 deletions
diff --git a/lib/elixir/lib/agent.ex b/lib/elixir/lib/agent.ex
index 03886f60f..432d84e02 100644
--- a/lib/elixir/lib/agent.ex
+++ b/lib/elixir/lib/agent.ex
@@ -77,7 +77,7 @@ defmodule Agent do
defined module to be put under a supervision tree. The generated
`child_spec/1` can be customized with the following options:
- * `:id` - the child specification id, defaults to the current module
+ * `:id` - the child specification identifier, defaults to the current module
* `:start` - how to start the child process (defaults to calling `__MODULE__.start_link/1`)
* `:restart` - when the child should be restarted, defaults to `:permanent`
* `:shutdown` - how to shut down the child
diff --git a/lib/elixir/lib/gen_server.ex b/lib/elixir/lib/gen_server.ex
index bf2bbf713..5310107c8 100644
--- a/lib/elixir/lib/gen_server.ex
+++ b/lib/elixir/lib/gen_server.ex
@@ -120,7 +120,7 @@ defmodule GenServer do
defined module to be put under a supervision tree. The generated
`child_spec/1` can be customized with the following options:
- * `:id` - the child specification id, defaults to the current module
+ * `:id` - the child specification identifier, defaults to the current module
* `:start` - how to start the child process (defaults to calling `__MODULE__.start_link/1`)
* `:restart` - when the child should be restarted, defaults to `:permanent`
* `:shutdown` - how to shut down the child
@@ -161,11 +161,11 @@ defmodule GenServer do
GenServer.call(MyStack, :pop) #=> :hello
Once the server is started, the remaining functions in this module (`call/3`,
- `cast/2`, and friends) will also accept an atom, or any `:global` or `:via`
- tuples. In general, the following formats are supported:
+ `cast/2`, and friends) will also accept an atom, or any `{:global, ...}` or
+ `{:via, ...}` tuples. In general, the following formats are supported:
- * a `pid`
- * an `atom` if the server is locally registered
+ * a PID
+ * an atom if the server is locally registered
* `{atom, node}` if the server is locally registered at another node
* `{:global, term}` if the server is globally registered
* `{:via, module, name}` if the server is registered through an alternative
@@ -558,7 +558,7 @@ defmodule GenServer do
exits. For such reasons, we usually recommend important clean-up rules to
happen in separated processes either by use of monitoring or by links
themselves. There is no cleanup needed when the `GenServer` controls a `port` (e.g.
- `:gen_tcp.socket`) or `t:File.io_device/0`, because these will be closed on
+ `:gen_tcp.socket`) or `t:File.io_device/0`, because these will be closed on
receiving a `GenServer`'s exit signal and do not need to be closed manually
in `c:terminate/2`.
diff --git a/lib/elixir/lib/io/ansi/docs.ex b/lib/elixir/lib/io/ansi/docs.ex
index 0224ea9e0..c299e9d54 100644
--- a/lib/elixir/lib/io/ansi/docs.ex
+++ b/lib/elixir/lib/io/ansi/docs.ex
@@ -14,7 +14,7 @@ defmodule IO.ANSI.Docs do
* `:doc_code` - code blocks (cyan)
* `:doc_headings` - h1, h2, h3, h4, h5, h6 headings (yellow)
* `:doc_inline_code` - inline code (cyan)
- * `:doc_table_heading` - style for table headings
+ * `:doc_table_heading` - the style for table headings
* `:doc_title` - top level heading (reverse, yellow)
* `:doc_underline` - underlined text (underline)
* `:width` - the width to format the text (80)
diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex
index 96eaa5309..592af7c25 100644
--- a/lib/elixir/lib/kernel.ex
+++ b/lib/elixir/lib/kernel.ex
@@ -59,7 +59,7 @@ defmodule Kernel do
There are two data types without an accompanying module:
- * Bitstrings - a sequence of bits, created with `Kernel.SpecialForms.<<>>/1`.
+ * Bitstring - a sequence of bits, created with `Kernel.SpecialForms.<<>>/1`.
When the number of bits is divisible by 8, they are called binaries and can
be manipulated with Erlang's `:binary` module
* Reference - a unique value in the runtime system, created with `make_ref/0`
@@ -4969,7 +4969,7 @@ defmodule Kernel do
@doc ~S"""
Handles the sigil `~c` for charlists.
- It returns a charlist as if it were a single quoted string, unescaping
+ It returns a charlist as if it was a single quoted string, unescaping
characters and replacing interpolations.
## Examples
diff --git a/lib/elixir/lib/task.ex b/lib/elixir/lib/task.ex
index d35438f2b..c6eef9ad6 100644
--- a/lib/elixir/lib/task.ex
+++ b/lib/elixir/lib/task.ex
@@ -96,7 +96,7 @@ defmodule Task do
defined module to be put under a supervision tree. The generated
`child_spec/1` can be customized with the following options:
- * `:id` - the child specification id, defaults to the current module
+ * `:id` - the child specification identifier, defaults to the current module
* `:start` - how to start the child process (defaults to calling `__MODULE__.start_link/1`)
* `:restart` - when the child should be restarted, defaults to `:temporary`
* `:shutdown` - how to shut down the child
diff --git a/lib/elixir/pages/Compatibility and Deprecations.md b/lib/elixir/pages/Compatibility and Deprecations.md
index 8f61e5a31..e8470ccfa 100644
--- a/lib/elixir/pages/Compatibility and Deprecations.md
+++ b/lib/elixir/pages/Compatibility and Deprecations.md
@@ -16,7 +16,7 @@ Elixir version | Support
Major Elixir releases may contain breaking changes and those will be explicitly outlined in the CHANGELOG. There are currently no plans for a major v2 release.
-## Compatibility between Elixir non-major versions
+## Compatibility between non-major Elixir versions
Elixir minor and patch releases are backwards compatible: well-defined behaviours and documented APIs in a given version will continue working on future versions.
diff --git a/lib/ex_unit/lib/ex_unit/doc_test.ex b/lib/ex_unit/lib/ex_unit/doc_test.ex
index 5d45cce10..8c59ccd64 100644
--- a/lib/ex_unit/lib/ex_unit/doc_test.ex
+++ b/lib/ex_unit/lib/ex_unit/doc_test.ex
@@ -165,7 +165,7 @@ defmodule ExUnit.DocTest do
This macro is used to generate ExUnit test cases for doctests.
Calling `doctest(Module)` will generate tests for all doctests found
- in the module `Module`
+ in the `module`.
Options can also be given:
@@ -187,7 +187,7 @@ defmodule ExUnit.DocTest do
This macro is auto-imported with every `ExUnit.Case`.
"""
- defmacro doctest(mod, opts \\ []) do
+ defmacro doctest(module, opts \\ []) do
require =
if is_atom(Macro.expand(mod, __CALLER__)) do
quote do
diff --git a/lib/iex/lib/iex/helpers.ex b/lib/iex/lib/iex/helpers.ex
index 2fc753d63..7cf8e670b 100644
--- a/lib/iex/lib/iex/helpers.ex
+++ b/lib/iex/lib/iex/helpers.ex
@@ -1067,7 +1067,7 @@ defmodule IEx.Helpers do
end
@doc """
- Evaluates the contents of the file at `path` as if it were directly typed into
+ Evaluates the contents of the file at `path` as if it was directly typed into
the shell.
`path` has to be a literal string. `path` is automatically expanded via
diff --git a/lib/logger/lib/logger.ex b/lib/logger/lib/logger.ex
index eaf777036..91bb36416 100644
--- a/lib/logger/lib/logger.ex
+++ b/lib/logger/lib/logger.ex
@@ -280,7 +280,7 @@ defmodule Logger do
* `:line` - the current line
- * `:pid` - the current process ID
+ * `:pid` - the current process identifier
* `:crash_reason` - a two-element tuple with the throw/error/exit reason
as first argument and the stacktrace as second. A throw will always be
diff --git a/lib/logger/lib/logger/formatter.ex b/lib/logger/lib/logger/formatter.ex
index d6ea8340e..0cd6e735c 100644
--- a/lib/logger/lib/logger/formatter.ex
+++ b/lib/logger/lib/logger/formatter.ex
@@ -15,8 +15,8 @@ defmodule Logger.Formatter do
The valid parameters you can use are:
- * `$time` - time the log message was sent
- * `$date` - date the log message was sent
+ * `$time` - the time the log message was sent
+ * `$date` - the date the log message was sent
* `$message` - the log message
* `$level` - the log level
* `$node` - the node that prints the message
diff --git a/lib/mix/lib/mix/config.ex b/lib/mix/lib/mix/config.ex
index 1eb4fe057..3abd3603b 100644
--- a/lib/mix/lib/mix/config.ex
+++ b/lib/mix/lib/mix/config.ex
@@ -19,11 +19,11 @@ defmodule Mix.Config do
`merge/2` and friends which help manipulate configurations
in general.
- Configuration set using `Mix.Config` will set the application env, so
+ Configuration set using `Mix.Config` will set the application environment, so
that `Application.get_env/3` and other `Application` functions can be used
at run or compile time to retrieve or change the configuration.
- For example, the `:key1` value from application `:plug` (see above) can be
+ For example, the `:key1` value from the application `:plug` (see example above) can be
retrieved with:
"value1" = Application.fetch_env!(:plug, :key1)
diff --git a/lib/mix/lib/mix/tasks/compile.app.ex b/lib/mix/lib/mix/tasks/compile.app.ex
index f7faff8f4..a822367b9 100644
--- a/lib/mix/lib/mix/tasks/compile.app.ex
+++ b/lib/mix/lib/mix/tasks/compile.app.ex
@@ -13,9 +13,9 @@ defmodule Mix.Tasks.Compile.App do
In order to generate the `.app` file, Mix expects your project
to have both `:app` and `:version` keys. Furthermore, you can
configure the generated application by defining an `application/0`
- function in your `mix.exs` with the following options.
+ function in your `mix.exs` that returns a keyword list.
- The most commonly used options are:
+ The most commonly used keys are:
* `:extra_applications` - a list of OTP applications
your application depends on which are not included in `:deps`
@@ -32,7 +32,7 @@ defmodule Mix.Tasks.Compile.App do
to this list. It is most useful in detecting conflicts
between applications that register the same names.
- * `:env` - default values for the application environment.
+ * `:env` - the default values for the application environment.
The application environment is one of the most common ways
to configure applications. See the `Application` module for
mechanisms to read and write to the application environment.
diff --git a/lib/mix/lib/mix/tasks/compile.ex b/lib/mix/lib/mix/tasks/compile.ex
index 70e39417a..ee777b8f4 100644
--- a/lib/mix/lib/mix/tasks/compile.ex
+++ b/lib/mix/lib/mix/tasks/compile.ex
@@ -49,7 +49,7 @@ defmodule Mix.Tasks.Compile do
* `--no-protocol-consolidation` - skips protocol consolidation
* `--force` - forces compilation
* `--return-errors` - return error status and diagnostics instead of exiting on error
- * `--erl-config` - path to an erlang term file that will be loaded as mix config
+ * `--erl-config` - path to an Erlang term file that will be loaded as mix config
"""
def run(["--list"]) do
diff --git a/lib/mix/lib/mix/tasks/escript.build.ex b/lib/mix/lib/mix/tasks/escript.build.ex
index 15d1fd6d9..3b06f09e2 100644
--- a/lib/mix/lib/mix/tasks/escript.build.ex
+++ b/lib/mix/lib/mix/tasks/escript.build.ex
@@ -56,7 +56,7 @@ defmodule Mix.Tasks.Escript.Build do
* `:path` - the path to write the escript to.
Defaults to app name.
- * `:app` - the app to start with the escript.
+ * `:app` - the app that starts with the escript.
Defaults to app name. Set it to `nil` if no application should
be started.