about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Burka <durka42+github@gmail.com>2015-11-29 22:53:19 -0500
committerAlex Burka <durka42+github@gmail.com>2015-11-29 22:53:19 -0500
commitf18bfb3168659979f486618696127bb5e0f340dc (patch)
tree608a0dc7c55e482ecd19372bdfe395da94efc94b /src/libstd
parentf542d4aba7429c8a37b89951c810e37aec5f2cc3 (diff)
downloadrust-f18bfb3168659979f486618696127bb5e0f340dc.tar.gz
rust-f18bfb3168659979f486618696127bb5e0f340dc.zip
tweak cfg! doc comment
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index b56eb46fc80..7a1ab790b0b 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.
     ///