Skip to content

Commit b1b1cd3

Browse files
jwarwickJosé Valim
authored and
José Valim
committed
Fixed spec for Enum.flat_map
1 parent 55563da commit b1b1cd3

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
@@ -781,7 +781,7 @@ defmodule Enum do
781781
{ [1,2,3], 3 }
782782
783783
"""
784-
@spec flat_map_reduce(t, acc, fun) :: list when
784+
@spec flat_map_reduce(t, acc, fun) :: { [any], any } when
785785
fun: (element, acc -> { t, acc } | { :halt, acc }),
786786
acc: any
787787
def flat_map_reduce(collection, acc, fun) do

0 commit comments

Comments
 (0)