Merge pull request #3895 from rust-lang/chriskrycho/vhb

Ch. 2: less ambiguity about numbers
This commit is contained in:
Chris Krycho 2024-04-19 13:06:51 -06:00 committed by GitHub
commit 874d9a2131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -654,8 +654,8 @@ 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 by adding this line to the `main` function body:
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>