about summary refs log tree commit diff
path: root/src/libstd/fmt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-04-14 12:21:52 -0700
committerbors <bors@rust-lang.org>2014-04-14 12:21:52 -0700
commit246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6 (patch)
treea68a1c6dc21d247e9466995f3fe28f1bdbd7ba25 /src/libstd/fmt
parent347e9e4ffe60d321999bb83216e956a0b1370810 (diff)
parent713e87526eac42aa9879e7cfb556ea64d63e7a91 (diff)
downloadrust-246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6.tar.gz
rust-246ebd2d5aebc68a581c33c33cbce5f2bc7dc7d6.zip
auto merge of #13493 : Manishearth/rust/newattr-everywhere, r=alexcrichton
See #13478
Diffstat (limited to 'src/libstd/fmt')
-rw-r--r--src/libstd/fmt/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs
index 3289475b184..f4f4be7172c 100644
--- a/src/libstd/fmt/mod.rs
+++ b/src/libstd/fmt/mod.rs
@@ -250,7 +250,7 @@ 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:
 
 ```rust
-# #[allow(unused_must_use)];
+# #![allow(unused_must_use)]
 use std::io;
 
 let mut w = io::MemWriter::new();
@@ -699,7 +699,7 @@ uniform_fn_call_workaround! {
 /// # Example
 ///
 /// ```rust
-/// # #[allow(unused_must_use)];
+/// # #![allow(unused_must_use)]
 /// use std::fmt;
 /// use std::io;
 ///