From 0729f34edc67f8edf855403ec6e4deb4ed2f4c8b Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Fri, 19 Apr 2024 12:56:12 -0600 Subject: [PATCH] Ch. 2: Further simplify language about numbers --- src/ch02-00-guessing-game-tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index c5999daa3..aa73c37a5 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -641,9 +641,9 @@ 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 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: +Ultimately, we want to convert the `String` the program reads as input into a +number type so we can compare it numerically to the secret number. We do so by +adding this line to the `main` function body: Filename: src/main.rs