diff --git a/src/libstd/fmt.rs b/src/libstd/fmt.rs index dc6f5486849c..ef0c59268c3c 100644 --- a/src/libstd/fmt.rs +++ b/src/libstd/fmt.rs @@ -185,7 +185,7 @@ struct. In order to help with this, the `Formatter` struct also provides some helper methods. 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 (propagating errors upward).