Skip to content

Commit e2b11c0

Browse files
alvinjjulienrf
andcommitted
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <julien@richard-foy.fr>
1 parent 006dac9 commit e2b11c0

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
@@ -412,7 +412,7 @@ We encourage you to make changes to that code to be sure you understand how it w
412412

413413
#### Using `for` as an expression
414414

415-
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.
415+
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.
416416

417417
A few examples demonstrate this. Using the same `ints` list as the previous example, this code creates a new list, where the value of each element in the new list is twice the value of the elements in the original list:
418418

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

13201320

13211321

1322-

0 commit comments

Comments
 (0)