We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a16ee commit 2d03a83Copy full SHA for 2d03a83
_overviews/scala3-book/ca-implicit-conversions.md
@@ -88,14 +88,14 @@ be defined by an implicit method (read more in the Scala 2 tab).
88
For example, this code defines an implicit conversion from `Int` to `Long`:
89
90
```scala
91
-given int2long: Conversion[Int, Long] with
+given int2long: Conversion[Int, Long]:
92
def apply(x: Int): Long = x.toLong
93
```
94
95
Like other given definitions, implicit conversions can be anonymous:
96
97
~~~ scala
98
-given Conversion[Int, Long] with
+given Conversion[Int, Long]:
99
100
~~~
101
0 commit comments