8000 import Success and Failure values near where they are used (needed fo… · xieleigang/scala.github.com@3c7adfb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c7adfb

Browse files
committed
import Success and Failure values near where they are used (needed for scala 2.10.3 at least)
1 parent 06cad3e commit 3c7adfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

overviews/core/_posts/2012-09-20-futures.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ fetch a list of our own recent posts and render them to the screen.
177177
We do so by calling a method `getRecentPosts` which returns
178178
a `List[String]`-- a list of recent textual posts:
179179

180+
import scala.util.{Success, Failure}
181+
180182
val f: Future[List[String]] = future {
181183
session.getRecentPosts
182184
}

0 commit comments

Comments
 (0)
0