fix docs for compiler builtin macros
This commit is contained in:
parent
1727dee167
commit
f542d4aba7
@ -473,7 +473,7 @@ pub mod builtin {
|
|||||||
/// leads to less duplicated code.
|
/// leads to less duplicated code.
|
||||||
///
|
///
|
||||||
/// The syntax given to this macro is the same syntax as the `cfg`
|
/// The syntax given to this macro is the same syntax as the `cfg`
|
||||||
/// attribute.
|
/// attribute (so `$cfg:meta` is not _exactly_ correct).
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -486,7 +486,7 @@ pub mod builtin {
|
|||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[macro_export]
|
#[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.
|
/// Parse the current given file as an expression.
|
||||||
///
|
///
|
||||||
@ -501,5 +501,5 @@ pub mod builtin {
|
|||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! include { ($cfg:tt) => ({ /* compiler built-in */ }) }
|
macro_rules! include { ($file:expr) => ({ /* compiler built-in */ }) }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user