Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix docs for compiler builtin macros
  • Loading branch information
durka committed Nov 27, 2015
1 parent 1727dee commit f542d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/macros.rs
Expand Up @@ -473,7 +473,7 @@ pub mod builtin {
/// leads to less duplicated code.
///
/// The syntax given to this macro is the same syntax as the `cfg`
/// attribute.
/// attribute (so `$cfg:meta` is not _exactly_ correct).
///
/// # Examples
///
Expand All @@ -486,7 +486,7 @@ pub mod builtin {
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[macro_export]
macro_rules! cfg { ($cfg:tt) => ({ /* compiler built-in */ }) }
macro_rules! cfg { ($cfg:meta) => ({ /* compiler built-in */ }) }

/// Parse the current given file as an expression.
///
Expand All @@ -501,5 +501,5 @@ pub mod builtin {
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[macro_export]
macro_rules! include { ($cfg:tt) => ({ /* compiler built-in */ }) }
macro_rules! include { ($file:expr) => ({ /* compiler built-in */ }) }
}

0 comments on commit f542d4a

Please sign in to comment.