Skip to content

Commit bbd0040

Browse files
committed
Fix documentation for write! on std::fmt page
Fixes rust-lang#36906
1 parent e2bd2d8 commit bbd0040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/fmt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@
261261
//! This and `writeln` are two macros which are used to emit the format string
262262
//! to a specified stream. This is used to prevent intermediate allocations of
263263
//! format strings and instead directly write the output. Under the hood, this
264-
//! function is actually invoking the `write` function defined in this module.
265-
//! Example usage is:
264+
//! function is actually invoking the `write_fmt` function defined on the
265+
//! `std::io::Write` trait. Example usage is:
266266
//!
267267
//! ```
268268
//! # #![allow(unused_must_use)]

0 commit comments

Comments
 (0)