about summary refs log tree commit diff
path: root/src/doc/guide-testing.md
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-04-12 09:03:16 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-04-12 09:03:39 +0530
commitd0aed0995b6ca50ff0955ccda2e9d98076e9f961 (patch)
tree3089efc6a698080be6deeec305e7722a73255c97 /src/doc/guide-testing.md
parentb2b2bbb62893b9655f65cb2813eaaba4f2e742dd (diff)
downloadrust-d0aed0995b6ca50ff0955ccda2e9d98076e9f961.tar.gz
rust-d0aed0995b6ca50ff0955ccda2e9d98076e9f961.zip
Update tutorials to use new attribute syntax (#13476)
Diffstat (limited to 'src/doc/guide-testing.md')
-rw-r--r--src/doc/guide-testing.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md
index 3efed4a215b..f924b4bcd86 100644
--- a/src/doc/guide-testing.md
+++ b/src/doc/guide-testing.md
@@ -185,7 +185,7 @@ amount.
 For example:
 
 ~~~
-# #[allow(unused_imports)];
+# #![allow(unused_imports)]
 extern crate test;
 
 use std::slice;
@@ -247,7 +247,7 @@ recognize that some calculation has no external effects and remove
 it entirely.
 
 ~~~
-# #[allow(unused_imports)];
+# #![allow(unused_imports)]
 extern crate test;
 use test::BenchHarness;