Skip to content

Commit

Permalink
Fix a link in the documentation for Traverse (#3383)
Browse files Browse the repository at this point in the history
* Correct some mistakes in Comonad documentatoin

* Fix link in traverse doc
  • Loading branch information
Justin Heyes-Jones authored Apr 14, 2020
1 parent 47cce52 commit a46aca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/tut/typeclasses/traverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def foldMap[F[_]: Traverse, A, B: Monoid](fa: F[A])(f: A => B): B =
Traverse[F].traverse[Const[B, *], A, B](fa)(a => Const(f(a))).getConst
```

This works because `Const[B, *]` is an `Applicative` if `B` is a `Monoid`, as explained in [the documentation of `Const`](const.html#example-2-traverse).
This works because `Const[B, *]` is an `Applicative` if `B` is a `Monoid`, as explained in [the documentation of `Const`](../datatypes/const.html#example-2-traverse).

## Further Reading

Expand Down

0 comments on commit a46aca6

Please sign in to comment.