about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index ad1da0a8685..f9ca84473fb 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -559,8 +559,8 @@ pub fn core_macros() -> ~str {
     //
     // ~~~
     // let clamped = cond!(
-    //     | x > mx { mx }
-    //     | x < mn { mn }
+    //     (x > mx) { mx }
+    //     (x < mn) { mn }
     //     _        { x  }
     // );
     // ~~~
@@ -568,12 +568,12 @@ pub fn core_macros() -> ~str {
     // The optional default case is denoted by `_`.
     //
     macro_rules! cond (
-        ($( | $pred:expr $body:block)+ _ $default:block ) => (
+        ( $(($pred:expr) $body:block)+ _ $default:block ) => (
             $(if $pred $body else)+
             $default
         );
         // for if the default case was ommitted
-        ( $( | $pred:expr $body:block )+ ) => (
+        ( $(($pred:expr) $body:block)+ ) => (
             $(if $pred $body)else+
         );
     )