Skip to content

Commit 4be2e76

Browse files
authored
Merge pull request #4079 from tokkiyaa/fix-docs-implicit-conversions
Fix docs(swap type arguments)
2 parents 27f6673 + 32bb635 commit 4be2e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Previously, an implicit value of type `Function1`, or any of its subtypes
77
could be used as an implicit conversion. That is, the following code would compile
88
even though it probably masks a type error:
99

10-
implicit val m: Map[String, Int] = Map(1 -> "abc")
10+
implicit val m: Map[Int, String] = Map(1 -> "abc")
1111

1212
val x: String = 1 // scalac: assigns "abc" to x
1313
// Dotty: type error

0 commit comments

Comments
 (0)