Skip to content

Commit 6ef51ab

Browse files
authored
Merge pull request #2295 from andrewcameronsims/andrewsims/fix_code_example_in_futures_doc
Add missing function invocation syntax
2 parents 3fccbfe + b7e5906 commit 6ef51ab

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
@@ -253,7 +253,7 @@ This future `f` is then failed with this exception instead of being completed su
253253

254254
val session = null
255255
val f: Future[List[Friend]] = Future {
256-
session.getFriends
256+
session.getFriends()
257257
}
258258

259259
The line `import ExecutionContext.Implicits.global` above imports

0 commit comments

Comments
 (0)