From bbd0040bb3c7f37f5af621a68dc212cdde2667ac Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Wed, 5 Oct 2016 20:27:47 -0400 Subject: [PATCH] Fix documentation for `write!` on `std::fmt` page Fixes #36906 --- src/libcollections/fmt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs index beb3e6b3d4e31..b095b8131b644 100644 --- a/src/libcollections/fmt.rs +++ b/src/libcollections/fmt.rs @@ -261,8 +261,8 @@ //! This and `writeln` are two macros which are used to emit the format string //! to a specified stream. This is used to prevent intermediate allocations of //! format strings and instead directly write the output. Under the hood, this -//! function is actually invoking the `write` function defined in this module. -//! Example usage is: +//! function is actually invoking the `write_fmt` function defined on the +//! `std::io::Write` trait. Example usage is: //! //! ``` //! # #![allow(unused_must_use)]