Reword pinning example
This commit is contained in:
@@ -11,7 +11,7 @@ defmodule PatternMatching do
|
|||||||
assert a == ___
|
assert a == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "A pattern can also be strict" do
|
koan "A variable can be pinned to be prevent it from being rebound" do
|
||||||
a = 1
|
a = 1
|
||||||
assert_raise MatchError, fn() ->
|
assert_raise MatchError, fn() ->
|
||||||
^a = ___
|
^a = ___
|
||||||
|
|||||||
Reference in New Issue
Block a user