From 488d168889ed8f71970fb1ad547e34fbb27e6e67 Mon Sep 17 00:00:00 2001 From: Bruce Adams Date: Wed, 14 Sep 2016 20:02:54 -0400 Subject: [PATCH] Correct Ok return value for read_line #257 --- src/ch02-00-guessing-game-tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index 8402fce2a..784c57bb1 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -273,8 +273,8 @@ argument to `expect`. In this case, if the `read_line` method returns an `Err`, it would likely be the result of an error coming from the underlying operating system. If this instance of `io::Result` is an `Ok` value, `expect` will take the return value that `Ok` is holding and return just that value to -us so that we can use it. In this case, that value will be what the user -entered into standard input. +us so that we can use it. In this case, that value is the number of +characters the user entered into standard input. [expect]: ../std/result/enum.Result.html#method.expect