From e4690cd4a465610987a5e37febb6b1ebf1e51e9d Mon Sep 17 00:00:00 2001 From: Benoit Person Date: Thu, 17 Jan 2019 21:18:17 +0000 Subject: [PATCH] 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. --- src/hello/print/fmt.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hello/print/fmt.md b/src/hello/print/fmt.md index b838fd7026..4059c97f38 100644 --- a/src/hello/print/fmt.md +++ b/src/hello/print/fmt.md @@ -79,14 +79,14 @@ RGB (0, 0, 0) 0x000000 ``` Two hints if you get stuck: - * You [may need to list each color more than once][argument_types], + * You [may need to list each color more than once][named_parameters], * You can [pad with zeros to a width of 2][fmt_width] with `:02`. ### See also [`std::fmt`][fmt] -[argument_types]: https://doc.rust-lang.org/std/fmt/#argument-types +[named_parameters]: https://doc.rust-lang.org/std/fmt/#named-parameters [deadbeef]: https://en.wikipedia.org/wiki/Deadbeef#Magic_debug_values [fmt]: https://doc.rust-lang.org/std/fmt/ [fmt_traits]: https://doc.rust-lang.org/std/fmt/#formatting-traits