From 25084ef930af407cb99260bb22b4f03da17eb905 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Mon, 31 Dec 2018 15:26:06 -0500 Subject: [PATCH] Remove double punctuation Even though it makes the code not exactly match what we entered, completely --- 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 013b7c108..897d0c8d0 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -679,7 +679,7 @@ Could not compile `guessing_game`. The core of the error states that there are *mismatched types*. Rust has a strong, static type system. However, it also has type inference. When we wrote -`let mut guess = String::new();`, Rust was able to infer that `guess` should be +`let mut guess = String::new()`, Rust was able to infer that `guess` should be a `String` and didn’t make us write the type. The `secret_number`, on the other hand, is a number type. A few number types can have a value between 1 and 100: `i32`, a 32-bit number; `u32`, an unsigned 32-bit number; `i64`, a 64-bit