Skip to content

Commit 6fa607b

Browse files
committed
Fix name in comments
1 parent abca5b0 commit 6fa607b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/Conversion.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package scala
1919
* from two to one.
2020
*
2121
* The `Conversion` class can also be used to convert explicitly, using
22-
* the `into` extension method.
22+
* the `convert` extension method.
2323
*/
2424
@java.lang.FunctionalInterface
2525
abstract class Conversion[-T, +U] extends Function1[T, U]:
@@ -28,5 +28,5 @@ abstract class Conversion[-T, +U] extends Function1[T, U]:
2828
object Conversion:
2929

3030
extension [T](x: T)
31-
/** `x.into[U]` converts a value `x` of type `T` to type `U` */
31+
/** `x.convert[U]` converts a value `x` of type `T` to type `U` */
3232
def convert[U](using c: Conversion[T, U]) = c(x)

0 commit comments

Comments
 (0)