File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ is translated into
65
65
66
66
#### Example 5
67
67
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
69
69
implement ` filter ` or ` withFilter ` compilation fails with the following error
70
70
71
71
value withFilter is not a member of ...
72
72
73
- That it because, for example, the following statement
73
+ That is because, for example, the following statement
74
74
75
75
for((a, b) <- c) yield {...}
76
76
@@ -79,10 +79,10 @@ is translated into
79
79
c.withFilter{
80
80
case (a, b) => true
81
81
case _ => false
82
- }.map{case (a, b) => {...}
82
+ }.map{case (a, b) => {...}}
83
83
84
84
where the ` withFilter ` ensures that the pattern in the subsequent function is
85
- always satisfied
85
+ always satisfied.
86
86
87
87
Clarity
88
88
----------------------------------
You can’t perform that action at this time.
0 commit comments