tweak cfg! doc comment
This commit is contained in:
parent
f542d4aba7
commit
f18bfb3168
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue