Skip to content

Commit 6995f21

Browse files
authored
Merge pull request #545 from olleolleolle/patch-1
Concurrent#flat: speling error in the example code
2 parents 293dac6 + e169fc5 commit 6995f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/edge/future.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def rescue(executor = nil, &callback)
659659

660660
# zips with the Future in the value
661661
# @example
662-
# Concurrent.future { Concurrent.future { 1 } }.flat.vale # => 1
662+
# Concurrent.future { Concurrent.future { 1 } }.flat.value # => 1
663663
def flat(level = 1)
664664
FlatPromise.new(self, level, @DefaultExecutor).future
665665
end

0 commit comments

Comments
 (0)