We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a62898 commit 178bb41Copy full SHA for 178bb41
1 file changed
lib/koans/10_structs.ex
@@ -57,7 +57,7 @@ defmodule Structs do
57
58
koan "Use the update_in macro to modify a nested value" do
59
airline = %Airline{plane: %Plane{maker: :boeing, passengers: 200}}
60
- assert update_in(airline.plane.passengers, &(&1 + 2)) == ___
+ assert update_in(airline.plane.passengers, fn(x) -> (x + 2) end) == ___
61
end
62
63
koan "Use the put_in macro with atoms to replace a nested value in a non-struct" do
0 commit comments