Skip to content

Commit 193b1c7

Browse files
authored
Update control-structures.md
1 parent 8641462 commit 193b1c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_overviews/scala3-book/control-structures.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ def isTruthy(a: Matchable) = a match
458458
case _ => true
459459
```
460460

461-
The input parameter a is defined to be the [Matchable type][matchable]---which is the root of all Scala types that pattern matching can be performed on.
461+
The input parameter `a` is defined to be the [`Matchable` type][matchable]---which is the root of all Scala types that pattern matching can be performed on.
462462
The method is implemented by matching on the input, providing two cases:
463-
The first one checks whether the given value is either the integer 0, an empty string, null or false and returns false in this case.
464-
In the default case, we return true for any other value.
463+
The first one checks whether the given value is either the integer `0`, an empty string or `false` and returns `false` in this case.
464+
In the default case, we return `true` for any other value.
465465
These examples show how this method works:
466466

467467
```scala

0 commit comments

Comments
 (0)