Skip to content

Commit 155b937

Browse files
author
Yuki Ito
committed
Fix Enum.uniq/2 spec
1 parent 6ef10d4 commit 155b937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ defmodule Enum do
946946
947947
"""
948948
@spec uniq(t) :: list
949-
@spec uniq(t, (element -> term)) :: boolean
949+
@spec uniq(t, (element -> term)) :: list
950950
def uniq(collection, fun // fn x -> x end)
951951

952952
def uniq(collection, fun) when is_list(collection) do

0 commit comments

Comments
 (0)