elixir: shorten some sentences
This commit is contained in:
parent
f81377fb28
commit
ba6239e7e9
|
@ -105,6 +105,7 @@ Pattern matching works in function parameters too.
|
||||||
|
|
||||||
Control flow
|
Control flow
|
||||||
------------
|
------------
|
||||||
|
{: .-three-column}
|
||||||
|
|
||||||
### If
|
### If
|
||||||
|
|
||||||
|
@ -122,9 +123,9 @@ case {1, 2, 3} do
|
||||||
{4, 5, 6} ->
|
{4, 5, 6} ->
|
||||||
"This clause won't match"
|
"This clause won't match"
|
||||||
{1, x, 3} ->
|
{1, x, 3} ->
|
||||||
"This clause will match and bind x to 2 in this clause"
|
"This will match and bind x to 2"
|
||||||
_ ->
|
_ ->
|
||||||
"This clause would match any value"
|
"This will match any value"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue