From 337c8204ae79c62cb97456c92a39a178eaa880fc Mon Sep 17 00:00:00 2001 From: Adam Angeli Date: Fri, 26 Apr 2024 15:00:49 -0700 Subject: [PATCH] fix typo - change compare to convert --- src/ch02-00-guessing-game-tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index f80ad52082..95e77d876a 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -680,7 +680,7 @@ often used when you want to convert a value from one type to another type. We bind this new variable to the expression `guess.trim().parse()`. The `guess` in the expression refers to the original `guess` variable that contained the input as a string. The `trim` method on a `String` instance will eliminate any -whitespace at the beginning and end, which we must do to be able to compare the +whitespace at the beginning and end, which we must do to be able to convert the string to the `u32`, which can only contain numerical data. The user must press enter to satisfy `read_line` and input their guess, which adds a newline character to the string. For example, if the user