From fdd1d92f8c6147bf8bc09046383da829d183b897 Mon Sep 17 00:00:00 2001 From: JirCep Date: Sat, 1 Oct 2022 21:45:04 +0200 Subject: [PATCH 1/3] Type parameter removal `Vec` denotes generic type. As this chapter kindly describes Rust generics cannot hold 2 or more struct kinds. --- src/ch17-02-trait-objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch17-02-trait-objects.md b/src/ch17-02-trait-objects.md index 2d3fea24a1..bb43cc6763 100644 --- a/src/ch17-02-trait-objects.md +++ b/src/ch17-02-trait-objects.md @@ -124,7 +124,7 @@ collections, using generics and trait bounds is preferable because the definitions will be monomorphized at compile time to use the concrete types. On the other hand, with the method using trait objects, one `Screen` instance -can hold a `Vec` that contains a `Box