From 2c22cee9424689f55801660e019ce99e26c3c891 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Sun, 27 Aug 2023 02:50:17 +0200 Subject: [PATCH] remove stray word (#1773) --- src/generics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generics.md b/src/generics.md index 2badc1136..6c61ab87f 100644 --- a/src/generics.md +++ b/src/generics.md @@ -126,7 +126,7 @@ You may have a couple of followup questions… definition. For example, `tcx.type_of(def_id_of_my_struct)` would return the “self-view” of `MyStruct`: `Adt(Foo, &[Param(0), Param(1)])`. -**`instantiate`** How do we actually do the substitutions? There is a function for that too! You +How do we actually do the substitutions? There is a function for that too! You use [`instantiate`] to replace a `GenericArgsRef` with another list of types. [Here is an example of actually using `instantiate` in the compiler][instantiatex].