Fix wrong type name: IoError<()> -> IoResult<()>

This commit is contained in:
Alexei Sholik 2014-06-25 12:12:28 +03:00
parent f21b29560c
commit beff610102

View File

@ -185,7 +185,7 @@ struct. In order to help with this, the `Formatter` struct also provides some
helper methods. helper methods.
Additionally, the return value of this function is `fmt::Result` which is a Additionally, the return value of this function is `fmt::Result` which is a
typedef to `Result<(), IoError>` (also known as `IoError<()>`). Formatting typedef to `Result<(), IoError>` (also known as `IoResult<()>`). Formatting
implementations should ensure that they return errors from `write!` correctly implementations should ensure that they return errors from `write!` correctly
(propagating errors upward). (propagating errors upward).