Skip to content

Commit e4690cd

Browse files
committed
Hello: Fix hint link in fmt chapter.
It looks like one of the hints is pointing to an irrelevant paragraph about argument types even though the text suggests it should point to the named parameters to DRY the code a bit.
1 parent 888e545 commit e4690cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hello/print/fmt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ RGB (0, 0, 0) 0x000000
7979
```
8080

8181
Two hints if you get stuck:
82-
* You [may need to list each color more than once][argument_types],
82+
* You [may need to list each color more than once][named_parameters],
8383
* You can [pad with zeros to a width of 2][fmt_width] with `:02`.
8484

8585
### See also
8686

8787
[`std::fmt`][fmt]
8888

89-
[argument_types]: https://doc.rust-lang.org/std/fmt/#argument-types
89+
[named_parameters]: https://doc.rust-lang.org/std/fmt/#named-parameters
9090
[deadbeef]: https://en.wikipedia.org/wiki/Deadbeef#Magic_debug_values
9191
[fmt]: https://doc.rust-lang.org/std/fmt/
9292
[fmt_traits]: https://doc.rust-lang.org/std/fmt/#formatting-traits

0 commit comments

Comments
 (0)