From f18bfb3168659979f486618696127bb5e0f340dc Mon Sep 17 00:00:00 2001 From: Alex Burka Date: Sun, 29 Nov 2015 22:53:19 -0500 Subject: [PATCH] tweak cfg! doc comment --- src/libstd/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index b56eb46fc805..7a1ab790b0b0 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -472,8 +472,8 @@ pub mod builtin { /// boolean expression evaluation of configuration flags. This frequently /// leads to less duplicated code. /// - /// The syntax given to this macro is the same syntax as the `cfg` - /// attribute (so `$cfg:meta` is not _exactly_ correct). + /// The syntax given to this macro is the same syntax as [the `cfg` + /// attribute](../reference.html#conditional-compilation). /// /// # Examples /// @@ -486,7 +486,7 @@ pub mod builtin { /// ``` #[stable(feature = "rust1", since = "1.0.0")] #[macro_export] - macro_rules! cfg { ($cfg:meta) => ({ /* compiler built-in */ }) } + macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) } /// Parse the current given file as an expression. ///