Merge pull request #82 from Zanadar/zm-pipe-is-cons

Struct koans now calls '|' operator by correct name: 'cons'
This commit is contained in:
Felipe Seré
2016-04-26 07:00:37 +01:00

View File

@@ -20,7 +20,7 @@ defmodule Structs do
assert joe.name == ___
end
koan "Update fields with the pipe '|' operator" do
koan "Update fields with the cons '|' operator" do
joe = %Person{name: "Joe", age: 23}
older = %{joe | age: joe.age + 10}
assert older.age == ___