Skip to content

Commit 1ab9577

Browse files
alvinjjulienrf
andauthored
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent 44729e4 commit 1ab9577

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_overviews/overview/a-taste-of-scala.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ We encourage you to make changes to that code to be sure you understand how it w
410410

411411
#### Using `for` as an expression
412412

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.
414414

415415
A few examples demonstrate this. Given this list:
416416

@@ -1318,4 +1318,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
13181318

13191319

13201320

1321-

0 commit comments

Comments
 (0)