Change definition of anonymous greet
That prevents the confusion of mixing up the anonymous and named implementations fixed by 55f592.
This commit is contained in:
@@ -68,7 +68,7 @@ defmodule Functions do
|
||||
end
|
||||
|
||||
koan "Prefix a string with & to build a simple anonymous greet function" do
|
||||
greet = &"Hello, #{&1}!"
|
||||
greet = &"Hi, #{&1}!"
|
||||
assert greet.("Foo") == ___
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user