Correct Ok return value for read_line #257

This commit is contained in:
Bruce Adams 2016-09-14 20:02:54 -04:00
parent 40e9cf563a
commit 488d168889

View File

@ -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