diff --git a/src/generics/dyn-trait.md b/src/generics/dyn-trait.md index 129238d7..106c2e7c 100644 --- a/src/generics/dyn-trait.md +++ b/src/generics/dyn-trait.md @@ -60,7 +60,7 @@ fn main() { instance of the function for each different type that the generic is instantiated with. This means that calling a trait method from within a generic function still uses static dispatch, as the compiler has full type - information and can resolve which type's trait implementation to use. + information and can resolve that type's trait implementation to use. - When using `dyn Trait`, it instead uses dynamic dispatch through a [virtual method table][vtable] (vtable). This means that there's a single diff --git a/src/generics/generic-data.md b/src/generics/generic-data.md index 8aa869d6..02969e2d 100644 --- a/src/generics/generic-data.md +++ b/src/generics/generic-data.md @@ -44,7 +44,7 @@ fn main() {
-- _Q:_ Why `L` is specified twice in `impl .. VerbosityFilter`? +- _Q:_ Why is `L` specified twice in `impl .. VerbosityFilter`? Isn't that redundant? - This is because it is a generic implementation section for generic type. They are independently generic. diff --git a/src/generics/impl-trait.md b/src/generics/impl-trait.md index 44323955..6c680c9e 100644 --- a/src/generics/impl-trait.md +++ b/src/generics/impl-trait.md @@ -30,7 +30,7 @@ fn main() {
-`impl Trait` allows you to work with types which you cannot name. The meaning of +`impl Trait` allows you to work with types that you cannot name. The meaning of `impl Trait` is a bit different in the different positions. - For a parameter, `impl Trait` is like an anonymous generic parameter with a