You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/overview/a-taste-of-scala.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -410,7 +410,7 @@ We encourage you to make changes to that code to be sure you understand how it w
410
410
411
411
#### Using `for` as an expression
412
412
413
-
The `for` keyword has even more power: When you add the `yield` keyword to `for` loops, you create powerful`for`*expressions* which are used to calculate and yield results.
413
+
The `for` keyword has even more power: When you use the `yield` keyword instead of `do`, you create `for`*expressions* which are used to calculate and yield results.
414
414
415
415
A few examples demonstrate this. Given this list:
416
416
@@ -1318,4 +1318,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
0 commit comments