Skip to content

Commit 037927b

Browse files
authored
Update breakOut.md fix type error (#1388)
Update breakOut.md fix type error
2 parents 9d5a769 + 2c87d8f commit 037927b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/FAQ/breakout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ chain, we find that the types passed to `TraversableLike`, and, thus, used by
154154

155155
Going back to the example, the first map is receiving a function of type
156156
`((Int, String)) => (Int, Int)` and the second map is receiving a function of
157-
type `((Int, String)) => Int`. I use the double parenthesis to emphasize it is
157+
type `((Int, String)) => String`. I use the double parenthesis to emphasize it is
158158
a tuple being received, as that's the type of `A` as we saw.
159159

160160
With that information, let's consider the other types.
@@ -163,7 +163,7 @@ With that information, let's consider the other types.
163163
B = (Int, Int)
164164

165165
map (_._2):
166-
B = Int
166+
B = String
167167

168168
We can see that the type returned by the first `map` is `Map[Int,Int]`, and the
169169
second is `Iterable[String]`. Looking at `map`'s definition, it is easy to see

0 commit comments

Comments
 (0)