diff --git a/ch02-00-guessing-game-tutorial.html b/ch02-00-guessing-game-tutorial.html index eee75c543..26c57e80e 100644 --- a/ch02-00-guessing-game-tutorial.html +++ b/ch02-00-guessing-game-tutorial.html @@ -206,7 +206,7 @@ have written this line as std::io::stdin().

This particular function returns an instance of std::io::Stdin, which is a type that represents a handle to the standard input for your terminal.

-

The next part, .read_line(&mut guess), calls the readline() +

The next part, .read_line(&mut guess), calls the read_line() method on the standard input handle to get input from the user. We’re also passing one argument to read_line(): &mut guess.

The job of read_line() is to take whatever the user types into standard input diff --git a/print.html b/print.html index 99baab8bf..6a57adee8 100644 --- a/print.html +++ b/print.html @@ -580,7 +580,7 @@ have written this line as std::io::stdin().

This particular function returns an instance of std::io::Stdin, which is a type that represents a handle to the standard input for your terminal.

-

The next part, .read_line(&mut guess), calls the readline() +

The next part, .read_line(&mut guess), calls the read_line() method on the standard input handle to get input from the user. We’re also passing one argument to read_line(): &mut guess.

The job of read_line() is to take whatever the user types into standard input