mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 08:59:17 -04:00
Merge pull request #616 from DavidDeprost/master
Update ch17-02-trait-objects.md
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Trait Objects for Using Values of Different Types
|
||||
|
||||
In Chapter 8, we talked about a limitation of vectors is that vectors can only
|
||||
In Chapter 8, we said that a limitation of vectors is that vectors can only
|
||||
store elements of one type. We had an example in Listing 8-1 where we defined a
|
||||
`SpreadsheetCell` enum that had variants to hold integers, floats, and text so
|
||||
that we could store different types of data in each cell and still have a
|
||||
|
||||
Reference in New Issue
Block a user