]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/macros.md
New upstream version 1.12.0+dfsg1
[rustc.git] / src / doc / book / macros.md
index f535fb96af89559131219cbde594a58218e50cd3..9f40829f4233f1e4d76f37f5f39fcc4850eaeb28 100644 (file)
@@ -328,7 +328,7 @@ invocation site. Code such as the following will not work:
 
 ```rust,ignore
 macro_rules! foo {
-    () => (let x = 3);
+    () => (let x = 3;);
 }
 
 fn main() {
@@ -342,7 +342,7 @@ tagged with the right syntax context.
 
 ```rust
 macro_rules! foo {
-    ($v:ident) => (let $v = 3);
+    ($v:ident) => (let $v = 3;);
 }
 
 fn main() {