Skip to content

Commit ec9890e

Browse files
committed
.
1 parent f31a376 commit ec9890e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/unroll-default-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ can be applied to methods `def`s, `class` constructors, or `case class`es to gen
225225

226226
This allows the developer to write the minimal amount of code they _want_ to write,
227227
and add a single annotation to allow binary compatibility to old versions. In this
228-
case, we annotated `sorted` with `@unroll`, which generates forwarders that make
228+
case, we annotated `sorted` and `nameMapper` with `@unroll`, which generates forwarders that make
229229
`def constructEither` binary compatible with older versions that have fewer parameters,
230-
up to a version before `sorted` was added. Any existing method `def`, `class`, or
230+
up to a version before `sorted` or `nameMapper` was added. Any existing method `def`, `class`, or
231231
`case class` can be evolved in this way, by addition of `@unroll` the first time
232232
a default argument is added to their signature after its initial definition.
233233

0 commit comments

Comments
 (0)