Reword maps matching example

This commit is contained in:
Jay Hayes
2016-05-02 12:17:09 -05:00
parent b577a24753
commit 12ce3ba2d3

View File

@@ -49,7 +49,7 @@ defmodule PatternMatching do
assert items == ___ assert items == ___
end end
koan "Patterns show what you really care about" do koan "Maps support partial pattern matching" do
%{make: make} = %{type: "car", year: 2016, make: "Honda", color: "black"} %{make: make} = %{type: "car", year: 2016, make: "Honda", color: "black"}
assert make == ___ assert make == ___