Update ch02-00-guessing-game-tutorial.md

The example code converts the input into a whole number. Replace the text "convert the String the program reads as input into a real number type" to "an actual number type" as the word real might be understood as one of the number categories instead as a synonym to "actual".
This commit is contained in:
Víctor Hernández 2022-09-01 14:22:21 +02:00 committed by GitHub
parent 0a5421ceb2
commit 3ebc3b285f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -641,8 +641,8 @@ an `i32`, which is the type of `secret_number` unless you add type information
elsewhere that would cause Rust to infer a different numerical type. The reason
for the error is that Rust cannot compare a string and a number type.
Ultimately, we want to convert the `String` the program reads as input into a
real number type so we can compare it numerically to the secret number. We do so
Ultimately, we want to convert the `String` the program reads as input into an
actual number type so we can compare it numerically to the secret number. We do so
by adding this line to the `main` function body:
<span class="filename">Filename: src/main.rs</span>