Skip to content

Commit 97e96f8

Browse files
alvinjjulienrf
andcommitted
Update _overviews/overview/a-taste-of-scala.md
Co-authored-by: Julien Richard-Foy <[email protected]>
1 parent e4f2390 commit 97e96f8

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
@@ -349,7 +349,7 @@ else
349349
Note that this really is an *expression* — not a *statement* — meaning that it returns a value, so you can assign the result to a variable:
350350

351351
```scala
352-
val x = if (a < b) a else b
352+
val x = if a < b then a else b
353353
```
354354

355355
As you’ll see throughout this Overview and in our Reference documentation, *all* Scala control structures can be used as expressions.
@@ -1321,4 +1321,3 @@ Scala has even more features that weren’t covered in this whirlwind tour. See
13211321

13221322

13231323

1324-

0 commit comments

Comments
 (0)