Skip to content

Commit e4dd785

Browse files
committed
Correct formatting docs: fmt::Result != io::Result<()>
1 parent 4901896 commit e4dd785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcollections/fmt.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@
165165
//! provides some helper methods.
166166
//!
167167
//! Additionally, the return value of this function is `fmt::Result` which is a
168-
//! typedef to `Result<(), std::io::Error>` (also known as `std::io::Result<()>`).
169-
//! Formatting implementations should ensure that they return errors from `write!`
170-
//! correctly (propagating errors upward).
168+
//! typedef to `Result<(), std::fmt::Error>`. Formatting implementations should
169+
//! ensure that they return errors from `write!` correctly (propagating errors
170+
//! upward).
171171
//!
172172
//! An example of implementing the formatting traits would look
173173
//! like:

0 commit comments

Comments
 (0)