diff options
| author | Quinn Sinclair <52372765+PartiallyTyped@users.noreply.github.com> | 2024-02-13 10:46:38 +0100 |
|---|---|---|
| committer | Quinn Sinclair <me@partiallytyped.dev> | 2024-03-03 18:12:41 +0100 |
| commit | ca8f03fb939d5ba582e1fb7a54a28458d391d7b9 (patch) | |
| tree | 21a4ed9926762394f783f61b5e5839dc4fd50f3e | |
| parent | 58d9c4707e11df900a4ecca5522d51a87f889224 (diff) | |
| download | rust-ca8f03fb939d5ba582e1fb7a54a28458d391d7b9.tar.gz rust-ca8f03fb939d5ba582e1fb7a54a28458d391d7b9.zip | |
Update trait_checking.md
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | book/src/development/trait_checking.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/development/trait_checking.md b/book/src/development/trait_checking.md index 08a6c40e90d..dd71ce4a8b7 100644 --- a/book/src/development/trait_checking.md +++ b/book/src/development/trait_checking.md @@ -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 |
