Skip to content

Commit 9475bda

Browse files
authored
Merge pull request #6075 from JimVanHorn/patch-2
Update extension-methods.md
2 parents 4e62ca9 + 63757cf commit 9475bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/contextual/extension-methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ So `circle.circumference` translates to `CircleOps.circumference(circle)`, provi
8080

8181
### Implied Instances for Extension Methods
8282

83-
Implied instances that define extension methods can also be defined without an `of` clause. E.g.,
83+
Implied instances that define extension methods can also be defined without a `for` clause. E.g.,
8484

8585
```scala
8686
implied StringOps {
@@ -130,7 +130,7 @@ def (xs: List[List[T]]) flattened [T] =
130130
xs.foldLeft[List[T]](Nil)(_ ++ _)
131131

132132
def (x: T) + [T : Numeric](y: T): T =
133-
implicitly[Numeric[T]].plus(x, y)
133+
the[Numeric[T]].plus(x, y)
134134
```
135135

136136
As usual, type parameters of the extension method follow the defined method name. Nevertheless, such type parameters can already be used in the preceding parameter clause.

0 commit comments

Comments
 (0)