Skip to content

Commit 87f889b

Browse files
authored
Merge pull request #2641 from shepmaster/gat-typos
Typos in GAT RFC
2 parents 2735924 + f573212 commit 87f889b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

text/1598-generic_associated_types.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rather than for as long as the borrow initiated by `next`.
3737

3838
This trait cannot be expressed in Rust as it exists today, because it depends
3939
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
4141
associated type constructors. This feature has a number of applications, but
4242
the primary application is along the same lines as the `StreamingIterator`
4343
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 {
191191

192192
Lastly, lifetimes can be elided in associated type constructors in the same
193193
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:
195195

196196
```rust
197197
trait StreamingIterator {
@@ -297,7 +297,7 @@ trait Foo {
297297
}
298298
```
299299

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
301301
opposed to the impl needing to prove the bound as in other cases.
302302

303303
(@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
329329
exists. Type constructors can already be aliased in Rust using the same syntax
330330
that this used, and while type aliases play no polymorphic role in type
331331
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
333333
constructors without even being aware that this has something to do with a type
334334
system feature called higher-kindedness.
335335

@@ -342,7 +342,7 @@ a very accessible framing of this concept; in particular the term "type
342342
constructor" is an obscure piece of jargon from type theory which most users
343343
cannot be expected to be familiar with.
344344

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
346346
as simply "generic associated types." Today, associated types cannot be
347347
generic; after this RFC, this will be possible. Rather than teaching this as
348348
a separate feature, it will be taught as an advanced use case for associated

0 commit comments

Comments
 (0)