File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1539,7 +1539,7 @@ defmodule Kernel.SpecialForms do
1539
1539
@ doc """
1540
1540
Combine matching clauses.
1541
1541
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
1543
1543
patterns it improves. Imagine you have a map where the fields
1544
1544
`width` and `height` are optional and you want to compute its
1545
1545
area, as `{:ok, area}` or return `:error`. We could implement
@@ -1661,7 +1661,7 @@ defmodule Kernel.SpecialForms do
1661
1661
...> end
1662
1662
{:error, :wrong_data}
1663
1663
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,
1665
1665
and the first match will be used. Variables bound inside `with` (such as
1666
1666
`width` in this example) are not available in the `else` block.
1667
1667
You can’t perform that action at this time.
0 commit comments