Merge pull request #258 from bruceadams/master

Correct Ok return value for read_line #257
This commit is contained in:
Carol (Nichols || Goulding)
2016-09-16 10:20:43 -04:00
committed by GitHub
+2 -2
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