Skip to content

Commit 7313897

Browse files
authored
Update resolution.md (#1561)
1 parent ea33f70 commit 7313897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traits/resolution.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl<T: Get> Get for Box<T> {
163163
}
164164
```
165165

166-
What happens when we invoke `get_it(&Box::new(1_u16))`, for example? In this
166+
What happens when we invoke `get(&Box::new(1_u16))`, for example? In this
167167
case, the `Self` type is `Box<u16>` – that unifies with both impls,
168168
because the first applies to all types `T`, and the second to all
169169
`Box<T>`. In order for this to be unambiguous, the compiler does a *winnowing*
@@ -248,7 +248,7 @@ because we know that each resolution will resolve to a particular impl.
248248

249249
One interesting twist has to do with nested obligations. In general, in codegen,
250250
we only to figure out which candidate applies, we do not care about nested obligations,
251-
as these are already assumed to be true. Nonetheless, we *do* currently do fulfill all of them.
251+
as these are already assumed to be true. Nonetheless, we *do* currently fulfill all of them.
252252
That is because it can sometimes inform the results of type inference.
253253
That is, we do not have the full substitutions in terms of the type variables
254254
of the impl available to us, so we must run trait selection to figure

0 commit comments

Comments
 (0)