Skip to content

Commit 7a59a3c

Browse files
committed
Correct @SPEC for Statistics.mean()
1 parent 42ae34d commit 7a59a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/statistics.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule Statistics do
2727
2.0
2828
2929
"""
30-
@spec mean(list) :: number
30+
@spec mean(list(number)) :: float() | nil
3131
def mean(list) when is_list(list), do: do_mean(list, 0, 0)
3232

3333
defp do_mean([], 0, 0), do: nil

0 commit comments

Comments
 (0)