Skip to content

Commit 41e9201

Browse files
committed
fixed typos
1 parent 926b5d9 commit 41e9201

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/HigherKinded-v2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ Modelling polymorphic type declarations
102102
---------------------------------------
103103

104104
The partial application scheme gives us a new -- and quite elegant --
105-
way to do higher-kinded types. But how do we interprete the
105+
way to do certain higher-kinded types. But how do we interprete the
106106
poymorphic types that exist in current Scala?
107107

108-
More concretely, current Scala allows us to write parameterize type
108+
More concretely, current Scala allows us to write parameterized type
109109
definitions, abstract types, and type parameters. In the new scheme,
110110
only classes (and traits) can have parameters and these are treated as
111111
equivalent to type members. Type aliases and abstract types do not
@@ -128,11 +128,11 @@ Here, `Lambda1` is a standard trait defined as follows:
128128

129129
trait Lambda1[type Arg1, type Apply]
130130

131-
According to our definitions of type parameters `Lambda1` has two type parameters
131+
According to our definitions of type parameters, `Lambda1` has two type parameters
132132
and `Pair` has one.
133133

134134
There are `LambdaN` traits for higher arities as well. `Lambda` traits are special in that
135-
they influence how type applications are expanded: If standard type applicatuon `T[X1, ..., Xn]`
135+
they influence how type applications are expanded: If the standard type application `T[X1, ..., Xn]`
136136
leads to a subtype `S` of a type instance
137137

138138
LambdaN { type Arg1 = T1; ...; type ArgN = Tn; type Apply ... }
@@ -145,7 +145,7 @@ For instance, the type instance `Pair[String]` would be expanded to
145145

146146
Lambda1 { type Arg1 = String; type Apply = (Arg1, Arg1) } # Apply
147147

148-
which turns out to be equal to `(String, String)`.
148+
which in turn equals `(String, String)`.
149149

150150
2nd Example: Consider the two aliases
151151

0 commit comments

Comments
 (0)