about summary refs log tree commit diff
path: root/src/doc/guide-macros.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/guide-macros.md')
-rw-r--r--src/doc/guide-macros.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-macros.md b/src/doc/guide-macros.md
index 23510997f24..303a32289b0 100644
--- a/src/doc/guide-macros.md
+++ b/src/doc/guide-macros.md
@@ -407,7 +407,7 @@ As an example, `loop` and `for-loop` labels (discussed in the lifetimes guide)
 will not clash. The following code will print "Hello!" only once:
 
 ~~~
-#[feature(macro_rules)];
+#![feature(macro_rules)]
 
 macro_rules! loop_x (
     ($e: expr) => (