mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +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} ->
|
||||
"This won't match"
|
||||
{: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"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user