Skip to content

Commit 82b5604

Browse files
authored
Fix typo in implicit conversion example
In the following example: def useConversion(implicit f: A => B) = { val y: A = ... val x: B = y // error under Dotty } `x` should probably refer to `y`, but not to `a`
1 parent 211cc8f commit 82b5604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/changed/implicit-conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In summary, previous code using implicit conversion parameters such as
3333

3434
def useConversion(implicit f: A => B) = {
3535
val y: A = ...
36-
val x: B = a // error under Dotty
36+
val x: B = y // error under Dotty
3737
}
3838

3939
is no longer legal and has to be rewritten to

0 commit comments

Comments
 (0)