book
book copied to clipboard
Chapter 2: Implicitly introducing positional println! arguments
URL to the section(s) of the book with this problem: https://github.com/rust-lang/book/blob/main/src/ch02-00-guessing-game-tutorial.md#printing-values-with-println-placeholders
Description of the problem:
First, the capturing syntax is used to print the single value guess, then it is explained that multiple values can also be printed, but positional arguments are used now without mentioning why or if it's mandatory or where this will be explained.
Suggested fix: It's probably easiest to use capturing syntax for all cases in this chapter because it's not supposed to go into detail.