From 53845ffcaf140dab1f68f63afed41615ea5cc6a8 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 10 Sep 2024 16:11:09 -0400 Subject: [PATCH] Avoid `[T]` in slices title (#2358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is a problem in how we generate the segment tables: we use the `Chapter::name` field as given to us from `mdbook`. The problem is that this string is stripped from formatting: Slices: `&[T]` becomes Slices: &[T] The string now looks like a reference link, but of course there is no definition of the `T` link: warning: Potential incomplete link ┌─ references.md:9:12 │ 9 │ | Slices: &[T] | 10 minutes | │ ^^^ Did you forget to define a URL for `T`? │ = hint: declare the link's URL. For example: `[T]: http://example.com/` For now, I will simply take out the reference. This also makes the titles more uniform in this segment: we don’t add `&T` or `&mut T` to the other slide titles. --- src/SUMMARY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 979c52b6c55..f7feb1878b9 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -55,7 +55,7 @@ - [References](references.md) - [Shared References](references/shared.md) - [Exclusive References](references/exclusive.md) - - [Slices: `&[T]`](references/slices.md) + - [Slices](references/slices.md) - [Strings](references/strings.md) - [Exercise: Geometry](references/exercise.md) - [Solution](references/solution.md)