Skip to content

Commit

Permalink
reversing roles of A and B in commentary to match the code that says …
Browse files Browse the repository at this point in the history
…that B is subtype of A. (#2154)
  • Loading branch information
phderome authored and Luka Jacobowitz committed Feb 12, 2018
1 parent d228e95 commit 5861210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/tut/typeclasses/contravariant.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ val showB3: Show[B] = Contravariant[Show].narrow[A, B](showA)
```

Subtyping relationships are "lifted backwards" by contravariant functors, such that if `F` is a
lawful contravariant functor and `A <: B` then `F[B] <: F[A]`, which is expressed by `Contravariant.narrow`.
lawful contravariant functor and `B <: A` then `F[A] <: F[B]`, which is expressed by `Contravariant.narrow`.

0 comments on commit 5861210

Please sign in to comment.