Fix typo in scaladoc

`s/invairant/invariant/`

Don't know how "official" the branch is, so ignore this PR at your convenience ;)