Skip to content

Commit 135a3cd

Browse files
authored
Merge pull request #2170 from i-surkov/main
Fixed code example for derivation with shapeless 3
2 parents 2529392 + cd4abf4 commit 135a3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_scala3-reference/contextual/derivation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ given eqProduct[A](using inst: K0.ProductInstances[Eq, A]): Eq[A] with
332332
)
333333

334334
inline def derived[A](using gen: K0.Generic[A]): Eq[A] =
335-
gen.derive(eqSum, eqProduct)
335+
gen.derive(eqProduct, eqSum)
336336
```
337337

338338
The framework described here enables all three of these approaches without mandating any of them.

0 commit comments

Comments
 (0)