We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b892a commit 7520c02Copy full SHA for 7520c02
_overviews/scala3-book/domain-modeling-tools.md
@@ -408,7 +408,7 @@ Here’s an example of a “string utilities” object that contains a set of me
408
```scala
409
object StringUtils {
410
def truncate(s: String, length: Int): String = s.take(length)
411
- def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*")
+ def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*")
412
def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty
413
}
414
```
0 commit comments