Use more explicit form of function definition for the time being

This commit is contained in:
Felipe Sere
2018-02-02 07:55:35 +00:00
parent 1a62898883
commit 178bb41361

View File

@@ -57,7 +57,7 @@ defmodule Structs do
koan "Use the update_in macro to modify a nested value" do
airline = %Airline{plane: %Plane{maker: :boeing, passengers: 200}}
assert update_in(airline.plane.passengers, &(&1 + 2)) == ___
assert update_in(airline.plane.passengers, fn(x) -> (x + 2) end) == ___
end
koan "Use the put_in macro with atoms to replace a nested value in a non-struct" do