Skip to content

Commit c00b289

Browse files
authored
Merge pull request #11144 from Flowdalic/patch-1
creator-applications.md: Improve readability of source code comment
2 parents afb8031 + e271f44 commit c00b289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/other-new-features/creator-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Scala 3 generalizes this scheme to all concrete classes. Example:
1212
class StringBuilder(s: String):
1313
def this() = this("")
1414

15-
StringBuilder("abc") // same as new StringBuilder("abc")
16-
StringBuilder() // same as new StringBuilder()
15+
StringBuilder("abc") // old: new StringBuilder("abc")
16+
StringBuilder() // old: new StringBuilder()
1717
```
1818

1919
This works since a companion object with two `apply` methods

0 commit comments

Comments
 (0)