From 5515d53528431e0636954ea04e4b4e61c1f0d789 Mon Sep 17 00:00:00 2001 From: Yutaro Ohno Date: Sun, 12 Mar 2023 18:19:19 +0900 Subject: [PATCH] fix typo `SubstRef` to `SubstsRef` --- src/generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generics.md b/src/generics.md index 0173bee8f..cbfd01e84 100644 --- a/src/generics.md +++ b/src/generics.md @@ -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