-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
- I have searched open and closed issues and pull requests for duplicates, using these search terms:
- trait
- object
- 20.3
- I have checked the latest
mainbranch to see if this has already been fixed, in this file:
URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/book/ch20-03-advanced-types.html#dynamically-sized-types-and-the-sized-trait
Description of the problem:
In fact, you’ve seen this before but with a different dynamically sized type: traits. Every trait is a dynamically sized type we can refer to by using the name of the trait.
From the context of the paragraph it appears that the dynamically sized type it is talking about is trait objects rather than traits.
Suggested fix:
- sized type: traits. Every trait is a dynamically sized type we can refer to by
+ sized type: trait objects. Every trait object is a dynamically sized type we can refer to byMetadata
Metadata
Assignees
Labels
No labels