Skip to content

Commit

Permalink
fix typo SubstRef to SubstsRef
Browse files Browse the repository at this point in the history
  • Loading branch information
ohno418 authored and tshepang committed Mar 12, 2023
1 parent e7fdb91 commit f9d24b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ You may have a couple of followup questions…

**`subst`** How do we actually do the substitutions? There is a function for that too! You use
[`subst`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/subst/struct.EarlyBinder.html#method.subst) to
replace a `SubstRef` with another list of types.
replace a `SubstsRef` with another list of types.

[Here is an example of actually using `subst` in the compiler][substex]. The exact details are not
too important, but in this piece of code, we happen to be converting from the `rustc_hir::Ty` to
Expand Down

0 comments on commit f9d24b3

Please sign in to comment.