You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/scala3-book/control-structures.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -458,10 +458,10 @@ def isTruthy(a: Matchable) = a match
458
458
case _ =>true
459
459
```
460
460
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.
462
462
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 stringor `false` and returns `false` in this case.
464
+
In the default case, we return `true` for any other value.
0 commit comments