You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-11-28 00:39:01 +02:00
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.
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
- [References](references.md)
|
- [References](references.md)
|
||||||
- [Shared References](references/shared.md)
|
- [Shared References](references/shared.md)
|
||||||
- [Exclusive References](references/exclusive.md)
|
- [Exclusive References](references/exclusive.md)
|
||||||
- [Slices: `&[T]`](references/slices.md)
|
- [Slices](references/slices.md)
|
||||||
- [Strings](references/strings.md)
|
- [Strings](references/strings.md)
|
||||||
- [Exercise: Geometry](references/exercise.md)
|
- [Exercise: Geometry](references/exercise.md)
|
||||||
- [Solution](references/solution.md)
|
- [Solution](references/solution.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user