Skip to content

Commit 5bb7c06

Browse files
Add an a
Co-authored-by: Daniel Egger <daniel@eggers-club.de>
1 parent c44239e commit 5bb7c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2022-10-28-gats-stabilization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The goal of this post is not to teach about GATs, but rather to briefly introduc
1212

1313
## What are GATs
1414

15-
At its core, generic associated types allow you to have *generics* (type, lifetime, or const) on *associated types*. Note that this is really just rounding out the places where you can put generics: for example, you can already have generics on freestanding type aliases and on functions in traits. Now you can just have generics on type aliases in traits (which we just call associated types). Here's an example of what trait with a GAT would look like:
15+
At its core, generic associated types allow you to have *generics* (type, lifetime, or const) on *associated types*. Note that this is really just rounding out the places where you can put generics: for example, you can already have generics on freestanding type aliases and on functions in traits. Now you can just have generics on type aliases in traits (which we just call associated types). Here's an example of what a trait with a GAT would look like:
1616

1717
```rust
1818
trait LendingIterator {

0 commit comments

Comments
 (0)