Skip to content

Commit e473f13

Browse files
authored
fix typos in yield.md (scala#1713)
1 parent 1d3853a commit e473f13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_overviews/FAQ/yield.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ is translated into
6565

6666
#### Example 5
6767

68-
When pattern matching is used in for comprehensions on objects which do not
68+
When pattern matching is used in for-comprehensions on objects which do not
6969
implement `filter` or `withFilter` compilation fails with the following error
7070

7171
value withFilter is not a member of ...
7272

73-
That it because, for example, the following statement
73+
That is because, for example, the following statement
7474

7575
for((a, b) <- c) yield {...}
7676

@@ -79,10 +79,10 @@ is translated into
7979
c.withFilter{
8080
case (a, b) => true
8181
case _ => false
82-
}.map{case (a, b) => {...}
82+
}.map{case (a, b) => {...}}
8383

8484
where the `withFilter` ensures that the pattern in the subsequent function is
85-
always satisfied
85+
always satisfied.
8686

8787
Clarity
8888
----------------------------------

0 commit comments

Comments
 (0)