diff options
author | Wojtek Mach <wojtekmach@users.noreply.github.com> | 2018-12-06 18:19:06 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2018-12-06 18:19:06 +0100 |
commit | ddac6057c6d5105caa8490cf3490c2229ad4a58b (patch) | |
tree | 2a065d020544a2b220ae7dda1bcd11606f790a16 | |
parent | 1904fe0fb0234916b9674cdd73ae59f7cefba7a2 (diff) | |
download | elixir-ddac6057c6d5105caa8490cf3490c2229ad4a58b.tar.gz |
Update docs (#8479)
-rw-r--r-- | lib/elixir/lib/kernel.ex | 4 | ||||
-rw-r--r-- | lib/elixir/lib/macro.ex | 2 | ||||
-rw-r--r-- | lib/elixir/lib/task.ex | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/elixir/lib/kernel.ex b/lib/elixir/lib/kernel.ex index 7e1406b28..68a699be7 100644 --- a/lib/elixir/lib/kernel.ex +++ b/lib/elixir/lib/kernel.ex @@ -746,7 +746,7 @@ defmodule Kernel do In the example above, `max/1` returned March 31st instead of April 1st because the structural comparison compares the day before the year. In such cases it is common for modules to provide functions such as - `Date.compare/1` that perform semantic comparison. + `Date.compare/2` that perform semantic comparison. """ @spec max(first, second) :: first | second when first: term, second: term def max(first, second) do @@ -777,7 +777,7 @@ defmodule Kernel do In the example above, `min/1` returned April 1st instead of March 31st because the structural comparison compares the day before the year. In such cases it is common for modules to provide functions such as - `Date.compare/1` that perform semantic comparison. + `Date.compare/2` that perform semantic comparison. """ @spec min(first, second) :: first | second when first: term, second: term def min(first, second) do diff --git a/lib/elixir/lib/macro.ex b/lib/elixir/lib/macro.ex index 3e8345008..1fc259c46 100644 --- a/lib/elixir/lib/macro.ex +++ b/lib/elixir/lib/macro.ex @@ -393,7 +393,7 @@ defmodule Macro do the metadata, we ensure that the module is deterministic and reduce the amount of data `ExUnit` needs to keep around. - ## Comparison to `Kernel.quote/2` + ## Comparison to `Kernel.SpecialForms.quote/2` The `escape/2` function is sometimes confused with `Kernel.SpecialForms.quote/2`, because the above examples behave the same with both. The key difference is diff --git a/lib/elixir/lib/task.ex b/lib/elixir/lib/task.ex index 24e2eaabb..0d389ec32 100644 --- a/lib/elixir/lib/task.ex +++ b/lib/elixir/lib/task.ex @@ -542,7 +542,7 @@ defmodule Task do It is not recommended to `await` a long-running task inside an OTP behaviour such as `GenServer`. Instead, you should match on the message - coming from a task inside your `GenServer.handle_info/2` callback. For + coming from a task inside your `c:GenServer.handle_info/2` callback. For more information on the format of the message, see the documentation for `async/1`. |