From 330d21ef02b8cd1f4fdc54a8a0fc3ba7b058b69f Mon Sep 17 00:00:00 2001 From: lodisy Date: Tue, 31 Jan 2023 19:00:53 +0800 Subject: [PATCH] Update traits.md --- src/traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits.md b/src/traits.md index b1c54d0f..dd43e6a9 100644 --- a/src/traits.md +++ b/src/traits.md @@ -41,7 +41,7 @@ fn main() { * Traits may specify pre-implemented (default) methods and methods that users are required to implement themselves. Methods with default implementations can rely on required methods. * Types that implement a given trait may be of different sizes. This makes it impossible to have things like `Vec` in the example above. * `dyn Greet` is a way to tell the compiler about a dynamically sized type that implements `Greet`. -* In the example, `pets` holds Fat Pointers to objects that implement `Greet`. The Fat Pointer consist of two components, a pointer to the actual object and a pointer to the virtual method table for the `Greet` implementation of that particular object. +* In the example, `pets` holds Fat Pointers to objects that implement `Greet`. The Fat Pointer consists of two components, a pointer to the actual object and a pointer to the virtual method table for the `Greet` implementation of that particular object. Compare these outputs in the above example: ```rust,ignore