From 6dc6644425802b3087d40c3b74994c957cfe2d63 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Mon, 11 Jul 2016 16:13:05 +0100 Subject: [PATCH] Add return type in Traverse example The following line says note the return type but it is not in the definition. --- docs/src/main/tut/traverse.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/tut/traverse.md b/docs/src/main/tut/traverse.md index 3691bb5f3c..4d6ec7ea6a 100644 --- a/docs/src/main/tut/traverse.md +++ b/docs/src/main/tut/traverse.md @@ -42,7 +42,7 @@ Given just `User => Future[Profile]`, what should we do if we want to fetch prof We could try familiar combinators like `map`. ```tut:book -def profilesFor(users: List[User]) = users.map(userInfo) +def profilesFor(users: List[User]): List[Future[Profile]] = users.map(userInfo) ``` Note the return type `List[Future[Profile]]`. This makes sense given the type signatures, but seems unwieldy.