Merge pull request #524 from pavloslav/Chapter-2-Multibyte-character-input

read_line returns number of bytes, not characters
This commit is contained in:
Carol (Nichols || Goulding)
2017-03-08 10:26:27 -05:00
committed by GitHub
@@ -273,7 +273,7 @@ argument to `expect`. 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 you so you
could use it. In this case, that value is the number of characters the user
could use it. In this case, that value is the number of bytes in what the user
entered into standard input.
[expect]: ../std/result/enum.Result.html#method.expect