From 185f056eda1a162ea89ae55a8afa13af00b592cb Mon Sep 17 00:00:00 2001 From: Jesse Ira Abadilla <18732253+VoidNoire@users.noreply.github.com> Date: Wed, 20 Jan 2021 14:08:04 +0000 Subject: [PATCH] Fix issue #2574 - Improve the explanation about the behaviour of `read_line`. --- 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 bad0ed5e10..e035f480da 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -188,9 +188,9 @@ guess`. [read_line]: ../std/io/struct.Stdin.html#method.read_line The job of `read_line` is to take whatever the user types into standard input -and place that into a string, so it takes that string as an argument. The -string argument needs to be mutable so the method can change the string’s -content by adding the user input. +and append that into a string (without overwriting its contents), so it takes +that string as an argument. The string argument needs to be mutable so the +method can change the string’s content by adding the user input. The `&` indicates that this argument is a *reference*, which gives you a way to let multiple parts of your code access one piece of data without needing to