Skip to content

Commit

Permalink
Merge pull request scala#146 from dotty-staging/docs/hk-typo-fix
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
DarkDimius committed Jul 19, 2014
2 parents 1f6f667 + b5e23e3 commit bdb6361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/HigherKinded-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The `I` suffix of the `Lambda` trait indicates that it has one invariant type pa
Other suffixes are `P` for covariant type parameters, and `N` for contravariant type parameters. Lambda traits can
have more than one type parameter. For instance, here is a trait with contravariant and covariant type parameters:

trait Lambda$NP[type -$hkArg$0, +$hkArg1] { type +Apply } extends Lambda$IP with Lambda$PI
trait Lambda$NP[type -$hkArg$0, +$hkArg1] { type +Apply } extends Lambda$IP with Lambda$NI

Aside: the `+` prefix in front of `Apply` indicates that `Apply` is a covariant type field. Dotty
admits variance annotations on type members.
Expand Down

0 comments on commit bdb6361

Please sign in to comment.