Skip to content

Commit 94494ff

Browse files
Merge pull request #9007 from yytyd/broken-link-for-extension-methods-doc
Fix broken link
2 parents e1cdf18 + 4a149a6 commit 94494ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/contextual/typeclasses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def combineAll[T: Monoid](xs: List[T]): T =
6363
xs.foldLeft(Monoid[T].unit)(_ combine _)
6464
```
6565

66-
We can also benefit from [extension methods](extension-methods-new.html) to make this `combineAll` function accessible as a method on the `List` type:
66+
We can also benefit from [extension methods](extension-methods.html) to make this `combineAll` function accessible as a method on the `List` type:
6767

6868

6969
```scala
@@ -119,7 +119,7 @@ assertTransformation(List("a1", "b1"), List("a", "b"), elt => s"${elt}1")
119119
```
120120

121121
That's a first step, but in practice we probably would like the `map` function to be a method directly accessible on the type `F`. So that we can call `map` directly on instances of `F`, and get rid of the `summon[Functor[F]]` part.
122-
As in the previous example of Monoids, [`extension` methods](extension-methods-new.html) help achieving that. Let's re-define the `Functor` _typeclass_ with extension methods.
122+
As in the previous example of Monoids, [`extension` methods](extension-methods.html) help achieving that. Let's re-define the `Functor` _typeclass_ with extension methods.
123123

124124
```scala
125125
trait Functor[F[?]] {

0 commit comments

Comments
 (0)