Struct koans now calls '|' operator by correct name: 'cons'
This commit is contained in:
@@ -20,7 +20,7 @@ defmodule Structs do
|
|||||||
assert joe.name == ___
|
assert joe.name == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "Update fields with the pipe '|' operator" do
|
koan "Update fields with the cons '|' operator" do
|
||||||
joe = %Person{name: "Joe", age: 23}
|
joe = %Person{name: "Joe", age: 23}
|
||||||
older = %{joe | age: joe.age + 10}
|
older = %{joe | age: joe.age + 10}
|
||||||
assert older.age == ___
|
assert older.age == ___
|
||||||
|
|||||||
Reference in New Issue
Block a user