Skip to content

Commit 7520c02

Browse files
authored
Fix example code
Probably from a previous. find / replace.
1 parent e9b892a commit 7520c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/domain-modeling-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Here’s an example of a “string utilities” object that contains a set of me
408408
```scala
409409
object StringUtils {
410410
def truncate(s: String, length: Int): String = s.take(length)
411-
def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*")
411+
def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*")
412412
def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty
413413
}
414414
```

0 commit comments

Comments
 (0)