From d197e33e57eab76688f4073a999793789ce90bab Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Mon, 21 Aug 2023 07:14:38 +0200 Subject: [PATCH] fix link --- src/memory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.md b/src/memory.md index b5b72ca2..d32310d3 100644 --- a/src/memory.md +++ b/src/memory.md @@ -40,7 +40,7 @@ to that buffer is freed and our `'tcx` references would be invalid. In addition to types, there are a number of other arena-allocated data structures that you can allocate, and which are found in this module. Here are a few examples: -- [`GenericArgs`][subst], allocated with `mk_args` – this will intern a slice of types, often used +- [`GenericArgs`], allocated with `mk_args` – this will intern a slice of types, often used to specify the values to be substituted for generics args(e.g. `HashMap` would be represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`). - [`TraitRef`], typically passed by value – a **trait reference** consists of a reference to a trait