Skip to content

Commit e271f44

Browse files
authored
Update creator-applications.md
One can not easily identify the start of the "code section" in "same as new StringBuilder()". Instead, use a colon to separate words from code.
1 parent 65b17af commit e271f44

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)