Skip to content

Commit f18bfb3

Browse files
committed
tweak cfg! doc comment
1 parent f542d4a commit f18bfb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ pub mod builtin {
472472
/// boolean expression evaluation of configuration flags. This frequently
473473
/// leads to less duplicated code.
474474
///
475-
/// The syntax given to this macro is the same syntax as the `cfg`
476-
/// attribute (so `$cfg:meta` is not _exactly_ correct).
475+
/// The syntax given to this macro is the same syntax as [the `cfg`
476+
/// attribute](../reference.html#conditional-compilation).
477477
///
478478
/// # Examples
479479
///
@@ -486,7 +486,7 @@ pub mod builtin {
486486
/// ```
487487
#[stable(feature = "rust1", since = "1.0.0")]
488488
#[macro_export]
489-
macro_rules! cfg { ($cfg:meta) => ({ /* compiler built-in */ }) }
489+
macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
490490

491491
/// Parse the current given file as an expression.
492492
///

0 commit comments

Comments
 (0)