Skip to content

Commit 66dc2a7

Browse files
committed
Tweak
1 parent 6b86452 commit 66dc2a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2024-08-01-given-priority-change-3.5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ This will issue warnings when the choice of `given` has changed:
106106
If the pre-3.5 behavior is preferred, you can explicitly pass the
107107
desired given:
108108
```scala
109-
@main def run = printComponent(using libComponent)
109+
@main def run = printComponent(using userComponent)
110110
```
111111

112112
To determine the correct explicit parameter (which could involve a
@@ -118,7 +118,7 @@ scalac client.scala -Xprint:typer
118118
This will output all parameters explicitly:
119119
```scala
120120
...
121-
@main def run: Unit = printComponent(libComponent)
121+
@main def run: Unit = printComponent(userComponent)
122122
...
123123
```
124124

0 commit comments

Comments
 (0)