Skip to content

Commit 53845ff

Browse files
authored
Avoid [T] in slices title (#2358)
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.
1 parent 1afd366 commit 53845ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
- [References](references.md)
5656
- [Shared References](references/shared.md)
5757
- [Exclusive References](references/exclusive.md)
58-
- [Slices: `&[T]`](references/slices.md)
58+
- [Slices](references/slices.md)
5959
- [Strings](references/strings.md)
6060
- [Exercise: Geometry](references/exercise.md)
6161
- [Solution](references/solution.md)

0 commit comments

Comments
 (0)