From 81b90bd56f66950a73029907e79b9f26c6e20b56 Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Wed, 6 May 2015 14:00:35 +0100 Subject: [PATCH] Correct initial guessing game example. Fixes #25147. r? @steveklabnik --- src/doc/trpl/guessing-game.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/trpl/guessing-game.md b/src/doc/trpl/guessing-game.md index 431b7dc50a299..f8dfc621e3a0c 100644 --- a/src/doc/trpl/guessing-game.md +++ b/src/doc/trpl/guessing-game.md @@ -86,7 +86,7 @@ fn main() { .ok() .expect("Failed to read line"); - println!("You guessed: {}", input); + println!("You guessed: {}", guess); } ``` @@ -302,12 +302,12 @@ project. There’s just one line of this first example left: ```rust,ignore - println!("You guessed: {}", input); + println!("You guessed: {}", guess); } ``` This prints out the string we saved our input in. The `{}`s are a placeholder, -and so we pass it `input` as an argument. If we had multiple `{}`s, we would +and so we pass it `guess` as an argument. If we had multiple `{}`s, we would pass multiple arguments: ```rust