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:
Jay Hayes
2017-01-24 08:08:01 -06:00
parent 55f59208b2
commit b8d7abe4ea
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -13,7 +13,7 @@ defmodule FunctionsTests do
{:multiple, ["The number was zero", "The number was 5"]},
6,
6,
"Hello, Foo!",
"Hi, Foo!",
["foo", "foo", "foo"],
100,
1000,