summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Saiani <gustavo.saiani@emcasa.com>2018-04-02 12:24:54 -0300
committerJosé Valim <jose.valim@gmail.com>2018-04-02 17:24:54 +0200
commit27e9486b4775017681804c2359e7e25b0ac2e775 (patch)
tree763f2e178a01e3bf2b83e7ebd3bad53582d87beb
parent87d12998877e3e92fc5f916d73a920f4a29cc66b (diff)
downloadelixir-27e9486b4775017681804c2359e7e25b0ac2e775.tar.gz
Fix typos in GenServer @moduledoc (#7525)
-rw-r--r--lib/elixir/lib/gen_server.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/lib/gen_server.ex b/lib/elixir/lib/gen_server.ex
index 8d3e92904..6935beaec 100644
--- a/lib/elixir/lib/gen_server.ex
+++ b/lib/elixir/lib/gen_server.ex
@@ -87,7 +87,7 @@ defmodule GenServer do
* an atom - the GenServer is registered locally with the given name
using `Process.register/2`.
- * `{:global, term}`- the GenServer is registered globally with the given
+ * `{:global, term}` - the GenServer is registered globally with the given
term using the functions in the [`:global` module](http://www.erlang.org/doc/man/global.html).
* `{:via, module, term}` - the GenServer is registered with the given
@@ -181,7 +181,7 @@ defmodule GenServer do
the GenServer callbacks as doing so will cause the GenServer to misbehave.
Besides the synchronous and asynchronous communication provided by `call/3`
- and `cast/2`, "regular" messages sent by functions such `Kernel.send/2`,
+ and `cast/2`, "regular" messages sent by functions such as `Kernel.send/2`,
`Process.send_after/4` and similar, can be handled inside the `c:handle_info/2`
callback.