Update trait_checking.md

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Quinn Sinclair 2024-02-13 10:46:38 +01:00 committed by Quinn Sinclair
parent 58d9c4707e
commit ca8f03fb93

View File

@ -94,7 +94,7 @@ impl LateLintPass<'_> for CheckTokioAsyncReadExtTrait {
}
```
## Creating traits programmatically
## Creating Types Programmatically
Traits are often generic over a type e.g. `Borrow<T>` is generic over `T`, and rust allows us to implement a trait for
a specific type. For example, we can implement `Borrow<str>` for a hypothetical type `Foo`. Let's suppose that we