Skip to content

Commit 1d20468

Browse files
authored
Rollup merge of rust-lang#36937 - wesleywiser:patch-3, r=frewsxcv
Fix documentation for `write!` on `std::fmt` page Fixes rust-lang#36906
2 parents 195dbfa + bbd0040 commit 1d20468

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)