Skip to content

Commit 4a10fb1

Browse files
committed
fix indentation
1 parent 903c0f5 commit 4a10fb1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_overviews/scala3-book/why-scala-3.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ nums.sortWith(_ > _)
348348
{% tab 'Scala 2' for=match %}
349349
```scala
350350
val numAsString = i match {
351-
case 1 | 3 | 5 | 7 | 9 => "odd"
352-
case 2 | 4 | 6 | 8 | 10 => "even"
353-
case _ => "too big"
354-
}
351+
case 1 | 3 | 5 | 7 | 9 => "odd"
352+
case 2 | 4 | 6 | 8 | 10 => "even"
353+
case _ => "too big"
354+
}
355355
```
356356
{% endtab %}
357357

@@ -371,9 +371,9 @@ Because they can return values, they’re often used as the body of a method:
371371
{% tab 'Scala 2' for=match-body %}
372372
```scala
373373
def isTruthy(a: Matchable) = a match {
374-
case 0 | "" => false
375-
case _ => true
376-
}
374+
case 0 | "" => false
375+
case _ => true
376+
}
377377
```
378378
{% endtab %}
379379

0 commit comments

Comments
 (0)