Fix "`Display` type" to "`Display` trait" in ch19-03

This commit is contained in:
Petr Pucil 2024-02-04 19:33:54 +01:00 committed by Carol (Nichols || Goulding)
parent 93293f01ac
commit e58f1cabce
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ that holds an instance of `Vec<T>`; then we can implement `Display` on
The implementation of `Display` uses `self.0` to access the inner `Vec<T>`,
because `Wrapper` is a tuple struct and `Vec<T>` is the item at index 0 in the
tuple. Then we can use the functionality of the `Display` type on `Wrapper`.
tuple. Then we can use the functionality of the `Display` trait on `Wrapper`.
The downside of using this technique is that `Wrapper` is a new type, so it
doesnt have the methods of the value its holding. We would have to implement