Reword pinning example

This commit is contained in:
Jay Hayes
2016-05-02 12:14:50 -05:00
parent cb47a17da9
commit 4fda4ab9ff

View File

@@ -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 = ___