Struct koans now calls '|' operator by correct name: 'cons'

This commit is contained in:
Zander Mackie
2016-04-25 17:54:59 -04:00
parent 162fec6731
commit d1c7a179f6

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