diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-05-07 12:21:04 +0200 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-05-07 12:21:04 +0200 |
| commit | 414e37f3d4f79b71b20e96fe23e3c9bf81e0e686 (patch) | |
| tree | 64c9a0ef5074d332994e4ea94ae39f4ff96f3d20 /src/doc/trpl | |
| parent | 48b67f04bfa9cd728606e525a2c29a0270e71250 (diff) | |
| parent | 81b90bd56f66950a73029907e79b9f26c6e20b56 (diff) | |
| download | rust-414e37f3d4f79b71b20e96fe23e3c9bf81e0e686.tar.gz rust-414e37f3d4f79b71b20e96fe23e3c9bf81e0e686.zip | |
Rollup merge of #25148 - banks:master, r=steveklabnik
Let me know if I didn't follow correct procedure - seems a trivial change and no one that can be automatically tested.
Diffstat (limited to 'src/doc/trpl')
| -rw-r--r-- | src/doc/trpl/guessing-game.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/guessing-game.md b/src/doc/trpl/guessing-game.md index 9f763e2fa13..e1c1336f07c 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 |
