We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
quantifier/1
bottle/1
1 parent 2d8d075 commit 2c1bb62Copy full SHA for 2c1bb62
exercises/practice/bottle-song/.meta/example.ex
@@ -42,10 +42,10 @@ defmodule BottleSong do
42
defp main_line(n),
43
do: "#{n |> quantifier() |> String.capitalize()} green #{bottle(n)} hanging on the wall,"
44
45
- @spec quantifier(pos_integer) :: String.t()
+ @spec quantifier(non_neg_integer) :: String.t()
46
defp quantifier(n), do: Map.get(@quantifiers, n)
47
48
- @spec bottle(pos_integer) :: String.t()
+ @spec bottle(non_neg_integer) :: String.t()
49
defp bottle(1), do: "bottle"
50
defp bottle(_), do: "bottles"
51
end
0 commit comments