diff --git a/docs/docs/reference/other-new-features/creator-applications.md b/docs/docs/reference/other-new-features/creator-applications.md index 387202720f9c..219fb16d2ea0 100644 --- a/docs/docs/reference/other-new-features/creator-applications.md +++ b/docs/docs/reference/other-new-features/creator-applications.md @@ -12,8 +12,8 @@ Scala 3 generalizes this scheme to all concrete classes. Example: class StringBuilder(s: String): def this() = this("") -StringBuilder("abc") // same as new StringBuilder("abc") -StringBuilder() // same as new StringBuilder() +StringBuilder("abc") // old: new StringBuilder("abc") +StringBuilder() // old: new StringBuilder() ``` This works since a companion object with two `apply` methods