Skip to content

Commit 30679ff

Browse files
committed
update original
1 parent 82bf815 commit 30679ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustbook-en/src/ch19-03-advanced-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ that holds an instance of `Vec<T>`; then we can implement `Display` on
442442

443443
The implementation of `Display` uses `self.0` to access the inner `Vec<T>`,
444444
because `Wrapper` is a tuple struct and `Vec<T>` is the item at index 0 in the
445-
tuple. Then we can use the functionality of the `Display` type on `Wrapper`.
445+
tuple. Then we can use the functionality of the `Display` trait on `Wrapper`.
446446

447447
The downside of using this technique is that `Wrapper` is a new type, so it
448448
doesn’t have the methods of the value it’s holding. We would have to implement

0 commit comments

Comments
 (0)