@@ -37,7 +37,7 @@ rather than for as long as the borrow initiated by `next`.
37
37
38
38
This trait cannot be expressed in Rust as it exists today, because it depends
39
39
on a sort of higher-kinded polymorphism. This RFC would extend Rust to include
40
- that specific form of higher-kinded polymorphism, which is refered to here as
40
+ that specific form of higher-kinded polymorphism, which is referred to here as
41
41
associated type constructors. This feature has a number of applications, but
42
42
the primary application is along the same lines as the ` StreamingIterator `
43
43
trait: defining traits which yield types which have a lifetime tied to the
@@ -191,7 +191,7 @@ impl<T> Baz for T where T: Foo {
191
191
192
192
Lastly, lifetimes can be elided in associated type constructors in the same
193
193
manner that they can be elided in other type constructors. Considering lifetime
194
- ellision , the full definition of ` StreamingIterator ` is:
194
+ elision , the full definition of ` StreamingIterator ` is:
195
195
196
196
``` rust
197
197
trait StreamingIterator {
@@ -297,7 +297,7 @@ trait Foo {
297
297
}
298
298
```
299
299
300
- Each invokation of ` <T as Foo>::Assoc ` will need to prove ` T: Sized ` , as
300
+ Each invocation of ` <T as Foo>::Assoc ` will need to prove ` T: Sized ` , as
301
301
opposed to the impl needing to prove the bound as in other cases.
302
302
303
303
(@nikomatsakis believes that where clauses will be needed on associated type
@@ -329,7 +329,7 @@ The advantage of the proposed syntax is that it leverages syntax that already
329
329
exists. Type constructors can already be aliased in Rust using the same syntax
330
330
that this used, and while type aliases play no polymorphic role in type
331
331
resolution, to users they seem very similar to associated types. A goal of this
332
- syntax is that many users will be able to use types which have assocaited type
332
+ syntax is that many users will be able to use types which have associated type
333
333
constructors without even being aware that this has something to do with a type
334
334
system feature called higher-kindedness.
335
335
@@ -342,7 +342,7 @@ a very accessible framing of this concept; in particular the term "type
342
342
constructor" is an obscure piece of jargon from type theory which most users
343
343
cannot be expected to be familiar with.
344
344
345
- Upon accepting this RFC, we should begin (with haste) refering to this concept
345
+ Upon accepting this RFC, we should begin (with haste) referring to this concept
346
346
as simply "generic associated types." Today, associated types cannot be
347
347
generic; after this RFC, this will be possible. Rather than teaching this as
348
348
a separate feature, it will be taught as an advanced use case for associated
0 commit comments