Skip to content

Commit 178bb41

Browse files
committed
Use more explicit form of function definition for the time being
1 parent 1a62898 commit 178bb41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/koans/10_structs.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule Structs do
5757

5858
koan "Use the update_in macro to modify a nested value" do
5959
airline = %Airline{plane: %Plane{maker: :boeing, passengers: 200}}
60-
assert update_in(airline.plane.passengers, &(&1 + 2)) == ___
60+
assert update_in(airline.plane.passengers, fn(x) -> (x + 2) end) == ___
6161
end
6262

6363
koan "Use the put_in macro with atoms to replace a nested value in a non-struct" do

0 commit comments

Comments
 (0)