Skip to content

Commit 334c732

Browse files
committed
Fixed doc typos in Task and URI
1 parent 752e3f8 commit 334c732

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/elixir/lib/task.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ defmodule Task do
7777
supervisor(Task.Supervisor, [[name: :tasks_sup]])
7878
]
7979
80-
Note that, when working with distributed tasks, one should use the `async/4` API,
81-
that expects explicit module, function and arguments, instead of `async/2` that
80+
Note that, when working with distributed tasks, one should use the `async/3` API,
81+
that expects explicit module, function and arguments, instead of `async/1` that
8282
works with anonymous functions. That's because the anonymous function API expects
8383
the same module version to exist on all involved nodes. Check the `Agent` module
8484
documentation for more information on distributed processes, as the limitations
@@ -160,7 +160,7 @@ defmodule Task do
160160
end
161161

162162
@doc """
163-
Awaits for a task reply.
163+
Awaits a task reply.
164164
165165
A timeout, in milliseconds, can be given with default value
166166
of `5000`. In case the task process dies, this function will

lib/elixir/lib/uri.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ defmodule URI do
6868
6969
Takes an enumerable (containing a sequence of two-item tuples)
7070
and returns a string of the form "key1=value1&key2=value2..." where
71-
keys and values are URL encoded as per `encode/1`.
71+
keys and values are URL encoded as per `encode/2`.
7272
7373
Keys and values can be any term that implements the `String.Chars`
7474
protocol, except lists which are explicitly forbidden.

0 commit comments

Comments
 (0)