Skip to content

Commit

Permalink
Merge pull request typelevel#972 from typelevel/ceedubs-patch-1
Browse files Browse the repository at this point in the history
Fix swapped f and g in invariant docs
  • Loading branch information
stew committed Apr 6, 2016
2 parents d0d5a79 + 420b72c commit 59a7844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/tut/invariant.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def imap[A, B](fa: F[A])(f: A => B)(g: B => A): F[B]
```

Every covariant (as well as [contravariant](contravariant.html)) functor gives rise to an invariant
functor, by ignoring the `f` (or in case of contravariance, `g`) function.
functor, by ignoring the `g` (or in case of contravariance, `f`) function.

Examples for instances of `Invariant` are `Semigroup` and `Monoid`, in
the following we will explain why this is the case using `Semigroup`, the
Expand Down

0 comments on commit 59a7844

Please sign in to comment.