book icon indicating copy to clipboard operation
book copied to clipboard

Chapter 2 wrong word for reading from read_line

Open akalogiros opened this issue 3 years ago • 0 comments

  • [x] I have checked the latest main branch to see if this has already been fixed
  • [x] I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html

Description of the problem: In Chapter 2, we are statin: "We’re also passing &mut guess as the argument to read_line to tell it what string to store the user input in"

The read_line is not going to store the user input, but it is going to read. So, maybe we can state:

"We’re also passing &mut guess as the argument to read_line to tell it what string to read as user input"

Thanks, Alex

akalogiros avatar Jan 30 '22 21:01 akalogiros