Skip to content

Commit cc09b50

Browse files
committed
glossary.md: tweak description of "dispatch"
- trait objects are not a *mechanism* - *prefers* is not explained, so rather leave it out
1 parent 2d9827f commit cc09b50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/glossary.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ root, including through [paths] of public modules.
6464

6565
Dispatch is the mechanism to determine which specific version of code is actually
6666
run when it involves polymorphism. Two major forms of dispatch are static dispatch and
67-
dynamic dispatch. While Rust favors static dispatch, it also supports dynamic dispatch
68-
through a mechanism called ‘trait objects’.
67+
dynamic dispatch. Rust supports dynamic dispatch through the use of [type.trait-object].
6968

7069
### Dynamically sized type
7170

0 commit comments

Comments
 (0)