From 7520c029d68c16ab924af3e4df09be8904c2d874 Mon Sep 17 00:00:00 2001 From: Victor Grigoriu Date: Sun, 4 Dec 2022 06:34:19 +0200 Subject: [PATCH 1/3] Fix example code Probably from a previous. find / replace. --- _overviews/scala3-book/domain-modeling-tools.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/scala3-book/domain-modeling-tools.md b/_overviews/scala3-book/domain-modeling-tools.md index a5c02b2a49..a3d44f96ec 100644 --- a/_overviews/scala3-book/domain-modeling-tools.md +++ b/_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 ```scala object StringUtils { def truncate(s: String, length: Int): String = s.take(length) - def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*") + def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*") def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty } ``` From 57076eb1ad8fc681456cc16f3b181daeb57af1ab Mon Sep 17 00:00:00 2001 From: Victor Grigoriu Date: Sun, 4 Dec 2022 12:00:59 +0200 Subject: [PATCH 2/3] fix all occurences of object_1es --- _overviews/scala3-book/domain-modeling-tools.md | 2 +- _ru/scala3/book/domain-modeling-tools.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_overviews/scala3-book/domain-modeling-tools.md b/_overviews/scala3-book/domain-modeling-tools.md index a3d44f96ec..762dd1bc2e 100644 --- a/_overviews/scala3-book/domain-modeling-tools.md +++ b/_overviews/scala3-book/domain-modeling-tools.md @@ -420,7 +420,7 @@ object StringUtils { ```scala object StringUtils: def truncate(s: String, length: Int): String = s.take(length) - def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*") + def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*") def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty ``` diff --git a/_ru/scala3/book/domain-modeling-tools.md b/_ru/scala3/book/domain-modeling-tools.md index 36f19bc3ad..b081a12d2a 100644 --- a/_ru/scala3/book/domain-modeling-tools.md +++ b/_ru/scala3/book/domain-modeling-tools.md @@ -403,7 +403,7 @@ val s3 = Student("Mary", "123", 456) ```scala object StringUtils { def truncate(s: String, length: Int): String = s.take(length) - def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*") + def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*") def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty } ``` @@ -415,7 +415,7 @@ object StringUtils { ```scala object StringUtils: def truncate(s: String, length: Int): String = s.take(length) - def containsWhitespace(s: String): Boolean = s.object_1es(".*\\s.*") + def containsWhitespace(s: String): Boolean = s.matches(".*\\s.*") def isNullOrEmpty(s: String): Boolean = s == null || s.trim.isEmpty ``` From e156dc57f6fb1a6e2f7ae7126210c0989eb62f0c Mon Sep 17 00:00:00 2001 From: Victor Grigoriu Date: Sun, 4 Dec 2022 12:24:49 +0200 Subject: [PATCH 3/3] update link that triggers html proofer error --- _overviews/FAQ/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_overviews/FAQ/index.md b/_overviews/FAQ/index.md index f075695e78..f38f691bc5 100644 --- a/_overviews/FAQ/index.md +++ b/_overviews/FAQ/index.md @@ -83,10 +83,10 @@ individual to individual. `-Xlint` is valuable to enable. Some brave people enable `-Werror` (formerly `-Xfatal-warnings`) to make warnings fatal. -[sbt-tpolecat](https://github.com/DavidGregory084/sbt-tpolecat) is an +[sbt-tpolecat](https://github.com/typelevel/sbt-tpolecat) is an opinionated sbt plugin that sets many options automatically, depending on Scala version; you can see -[here](https://github.com/DavidGregory084/sbt-tpolecat/blob/master/src/main/scala/io/github/davidgregory084/TpolecatPlugin.scala) +[here](https://github.com/typelevel/sbt-tpolecat/blob/main/plugin/src/main/scala/io/github/davidgregory084/TpolecatPlugin.scala) what it sets. Some choices it makes are oriented towards pure-functional programmers.