Skip to content

Commit e2e38f3

Browse files
authored
Fix typos in with docstring (#13680)
1 parent 134941e commit e2e38f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/kernel/special_forms.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ defmodule Kernel.SpecialForms do
15391539
@doc """
15401540
Combine matching clauses.
15411541
1542-
One of the ways to understand with is to show which code
1542+
One of the ways to understand `with` is to show which code
15431543
patterns it improves. Imagine you have a map where the fields
15441544
`width` and `height` are optional and you want to compute its
15451545
area, as `{:ok, area}` or return `:error`. We could implement
@@ -1661,7 +1661,7 @@ defmodule Kernel.SpecialForms do
16611661
...> end
16621662
{:error, :wrong_data}
16631663
1664-
The `else` block works like a `case` clause: it can have multiple clauses,
1664+
The `else` block works like a `case`: it can have multiple clauses,
16651665
and the first match will be used. Variables bound inside `with` (such as
16661666
`width` in this example) are not available in the `else` block.
16671667

0 commit comments

Comments
 (0)