Modify lists and maps style

This commit is contained in:
fabien townsend
2016-04-24 10:18:57 +02:00
parent c60f7c0033
commit ca1bd36322
6 changed files with 27 additions and 27 deletions

View File

@@ -2,7 +2,7 @@ defmodule Structs do
use Koans
defmodule Person do
defstruct [:name, :age ]
defstruct [:name, :age]
end
koan "Structs are defined and named after a module" do
@@ -22,7 +22,7 @@ defmodule Structs do
koan "Update fields with the pipe '|' operator" do
joe = %Person{name: "Joe", age: 23}
older = %{ joe | age: joe.age + 10}
older = %{joe | age: joe.age + 10}
assert older.age == ___
end