book icon indicating copy to clipboard operation
book copied to clipboard

Chapter 2: Implicitly introducing positional println! arguments

Open leanderBehr opened this issue 3 years ago • 0 comments

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.

leanderBehr avatar Aug 24 '22 21:08 leanderBehr