Skip to content

Commit

Permalink
Merge pull request #1185 from richardmiller/patch-1
Browse files Browse the repository at this point in the history
Add return type in Traverse example
  • Loading branch information
peterneyens authored Jul 11, 2016
2 parents eb95684 + 6dc6644 commit 3538140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/tut/traverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3538140

Please sign in to comment.