File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ pub mod builtin {
473
473
/// leads to less duplicated code.
474
474
///
475
475
/// The syntax given to this macro is the same syntax as the `cfg`
476
- /// attribute.
476
+ /// attribute (so `$cfg:meta` is not _exactly_ correct) .
477
477
///
478
478
/// # Examples
479
479
///
@@ -486,7 +486,7 @@ pub mod builtin {
486
486
/// ```
487
487
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
488
488
#[ macro_export]
489
- macro_rules! cfg { ( $cfg: tt ) => ( { /* compiler built-in */ } ) }
489
+ macro_rules! cfg { ( $cfg: meta ) => ( { /* compiler built-in */ } ) }
490
490
491
491
/// Parse the current given file as an expression.
492
492
///
@@ -501,5 +501,5 @@ pub mod builtin {
501
501
/// ```
502
502
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
503
503
#[ macro_export]
504
- macro_rules! include { ( $cfg : tt ) => ( { /* compiler built-in */ } ) }
504
+ macro_rules! include { ( $file : expr ) => ( { /* compiler built-in */ } ) }
505
505
}
You can’t perform that action at this time.
0 commit comments