Skip to content

Commit 293a0bd

Browse files
authored
Update binary-compatibility-for-library-authors.md
fix typo
1 parent 7668763 commit 293a0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/tutorials/binary-compatibility-for-library-authors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Later in time, you can amend the original case class definition to, say, add an
227227
case class Person private (name: String, age: Int, address: Option[String]):
228228
...
229229
// Add back the former primary constructor signature
230-
private[Person] def this(name: String, age: Int): Person = this(name, age, None)
230+
private[Person] def this(name: String, age: Int) = this(name, age, None)
231231
def withAddress(address: Option[String]) = copy(address = address)
232232
```
233233
{% endtab %}

0 commit comments

Comments
 (0)