mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update elixir.html.markdown
The variable is only bound in the case statements
This commit is contained in:
parent
5ad208e385
commit
d88564513f
@ -170,7 +170,7 @@ case {:one, :two} do
|
|||||||
{:four, :five} ->
|
{:four, :five} ->
|
||||||
"This won't match"
|
"This won't match"
|
||||||
{:one, x} ->
|
{:one, x} ->
|
||||||
"This will match and bind `x` to `:two`"
|
"This will match and bind `x` to `:two` in this clause"
|
||||||
_ ->
|
_ ->
|
||||||
"This will match any value"
|
"This will match any value"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user