diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-06-17 07:16:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-17 07:16:58 +0900 |
| commit | 6ac93185f4daacacb537d5b61e900eb9d58edcd1 (patch) | |
| tree | 6fe4883c1653634597504ca1f376f4ee9626ac28 /library/std/src/keyword_docs.rs | |
| parent | 81b00b80f302cbf3f0916635da2396461025343e (diff) | |
| parent | dd0f5d8be0d60f6863ad4f0ad40bd21cd551f86e (diff) | |
| download | rust-6ac93185f4daacacb537d5b61e900eb9d58edcd1.tar.gz rust-6ac93185f4daacacb537d5b61e900eb9d58edcd1.zip | |
Rollup merge of #98169 - pierwill:dyn-disp, r=JohnTitor
Keyword docs: Link to wikipedia article for dynamic dispatch
Diffstat (limited to 'library/std/src/keyword_docs.rs')
| -rw-r--r-- | library/std/src/keyword_docs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index 4f4b06fc47d..7157b5af00c 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -2257,7 +2257,7 @@ mod await_keyword {} /// `dyn` is a prefix of a [trait object]'s type. /// /// The `dyn` keyword is used to highlight that calls to methods on the associated `Trait` -/// are dynamically dispatched. To use the trait this way, it must be 'object safe'. +/// are [dynamically dispatched]. To use the trait this way, it must be 'object safe'. /// /// Unlike generic parameters or `impl Trait`, the compiler does not know the concrete type that /// is being passed. That is, the type has been [erased]. @@ -2281,6 +2281,7 @@ mod await_keyword {} /// the method won't be duplicated for each concrete type. /// /// [trait object]: ../book/ch17-02-trait-objects.html +/// [dynamically dispatched]: https://en.wikipedia.org/wiki/Dynamic_dispatch /// [ref-trait-obj]: ../reference/types/trait-object.html /// [ref-obj-safety]: ../reference/items/traits.html#object-safety /// [erased]: https://en.wikipedia.org/wiki/Type_erasure |
