Skip to content

Commit e169fc5

Browse files
authored
Concurrent#flat: speling error in the example code
1 parent 83718fc commit e169fc5

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)