Skip to content

Commit 41619b9

Browse files
authored
Merge pull request #1290 from sergeyh/patch-1
Fix Promise creation
2 parents 4afecb3 + 7f94fa9 commit 41619b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/core/futures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ two futures `f` and `g` and produces a third future which is completed by either
970970
Here is an example of how to do it:
971971

972972
def first[T](f: Future[T], g: Future[T]): Future[T] = {
973-
val p = promise[T]
973+
val p = Promise[T]
974974

975975
f foreach { x =>
976976
p.trySuccess(x)

0 commit comments

Comments
 (0)