Skip to content

Commit 7546115

Browse files
committed
Make some editorial tweaks
1 parent 686b13f commit 7546115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trait-bounds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn f<'a, 'b>(x: &'a i32, mut y: &'b i32) {
164164
}
165165
```
166166

167-
For the purpose of determining implied bounds on trait implementations, the implementing type (the `T` in `impl Trait for T`) is considered to be an input, as are generic parameters on the trait definition.
167+
For the purpose of determining implied bounds on trait implementations, the type being implemented is considered to be an input, as are generic parameters on the trait definition.
168168
Parameters of the trait implementation, which come directly after the `impl` keyword, are not otherwise considered to be inputs.
169169
For example, for the `Vec<T>` implementation below, `'a` and `Vec<T>` are inputs to the trait, but `T` and `&'a T` are not:
170170

@@ -177,7 +177,7 @@ impl<'a, T> MakeRef<'a> for Vec<T>
177177
type Type = &'a T;
178178
}
179179

180-
// `T: 'a` is implied: `&'a T` (implementing type) is an input to the trait
180+
// `T: 'a` is implied: `&'a T` is an input to the trait
181181
impl<'a, T> MakeRef<'a> for &'a T {
182182
type Type = &'a T;
183183
}

0 commit comments

Comments
 (0)