Skip to content

Commit

Permalink
Fix swapped f and g in invariant docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ceedubs committed Apr 6, 2016
1 parent d0d5a79 commit 420b72c
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 420b72c

Please sign in to comment.