Skip to content

Commit ae0df96

Browse files
authored
Merge pull request #6246 from dotty-staging/creator-applications-typo-fix
Fix typo in creator-applications.md
2 parents 7143421 + 9beafc7 commit ae0df96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Creator applications allow to use simple function call syntax to create instance
77
of a class, even if there is no apply method implemented. Example:
88
```scala
99
class StringBuilder(s: String) {
10-
def this() = this(s)
10+
def this() = this("")
1111
}
1212

1313
StringBuilder("abc") // same as new StringBuilder("abc")

0 commit comments

Comments
 (0)