mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 10:14:58 +02:00
Update elixir.html.markdown
The variable is only bound in the case statements
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user