Skip to content

Commit 2de8cb5

Browse files
authored
correct type of SubstsRef (#1347)
1 parent acb1fcb commit 2de8cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In rustc this is done using the `SubstsRef` that we mentioned above (“substs
1010
Conceptually, you can think of `SubstsRef` as a list of types that are to be substituted for the
1111
generic type parameters of the ADT.
1212

13-
`SubstsRef` is a type alias of `List<GenericArg<'tcx>>` (see [`List` rustdocs][list]).
13+
`SubstsRef` is a type alias of `&'tcx List<GenericArg<'tcx>>` (see [`List` rustdocs][list]).
1414
[`GenericArg`] is essentially a space-efficient wrapper around [`GenericArgKind`], which is an enum
1515
indicating what kind of generic the type parameter is (type, lifetime, or const). Thus, `SubstsRef`
1616
is conceptually like a `&'tcx [GenericArgKind<'tcx>]` slice (but it is actually a `List`).

0 commit comments

Comments
 (0)