about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-05-16 02:00:19 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2016-05-16 02:00:19 +0300
commitb0c897279efda9f0a781870dbdbc1d5c83e9fcf3 (patch)
tree798affc64897b316ec6181cde90fdf3dd011e254
parent76d50e657b71876df4ac00b89d43a25da108ba7f (diff)
parent971a3afe4828ad37a47bbb23ecdfbb012f6770b6 (diff)
downloadrust-b0c897279efda9f0a781870dbdbc1d5c83e9fcf3.tar.gz
rust-b0c897279efda9f0a781870dbdbc1d5c83e9fcf3.zip
Rollup merge of #33634 - tshepang:nicer-output, r=steveklabnik
doc: improve output
-rw-r--r--src/libcollections/fmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs
index 0e8aaf66615..b842d62bf77 100644
--- a/src/libcollections/fmt.rs
+++ b/src/libcollections/fmt.rs
@@ -298,7 +298,7 @@
 //! fn my_fmt_fn(args: fmt::Arguments) {
 //!     write!(&mut io::stdout(), "{}", args);
 //! }
-//! my_fmt_fn(format_args!("or a {} too", "function"));
+//! my_fmt_fn(format_args!(", or a {} too", "function"));
 //! ```
 //!
 //! The result of the `format_args!` macro is a value of type `fmt::Arguments`.