Skip to content

Commit dd0f5d8

Browse files
committed
Keyword docs: Link to wikipedia article for dynamic dispatch
1 parent 7fe2c4b commit dd0f5d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/keyword_docs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,7 @@ mod await_keyword {}
22572257
/// `dyn` is a prefix of a [trait object]'s type.
22582258
///
22592259
/// The `dyn` keyword is used to highlight that calls to methods on the associated `Trait`
2260-
/// are dynamically dispatched. To use the trait this way, it must be 'object safe'.
2260+
/// are [dynamically dispatched]. To use the trait this way, it must be 'object safe'.
22612261
///
22622262
/// Unlike generic parameters or `impl Trait`, the compiler does not know the concrete type that
22632263
/// is being passed. That is, the type has been [erased].
@@ -2281,6 +2281,7 @@ mod await_keyword {}
22812281
/// the method won't be duplicated for each concrete type.
22822282
///
22832283
/// [trait object]: ../book/ch17-02-trait-objects.html
2284+
/// [dynamically dispatched]: https://en.wikipedia.org/wiki/Dynamic_dispatch
22842285
/// [ref-trait-obj]: ../reference/types/trait-object.html
22852286
/// [ref-obj-safety]: ../reference/items/traits.html#object-safety
22862287
/// [erased]: https://en.wikipedia.org/wiki/Type_erasure

0 commit comments

Comments
 (0)