Skip to content

Commit b374c53

Browse files
committed
Small doc change for include!
1 parent ce8e4e7 commit b374c53

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/libcore/macros.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,7 @@ pub mod builtin {
640640
#[macro_export]
641641
macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
642642

643-
/// Parse the file provided in the argument as an expression or an
644-
/// item according to the context. This file is located relative
645-
/// to the current file (similarly to how modules are found).
643+
/// Parse a file as an expression or an item according to the context.
646644
///
647645
/// For more information, see the documentation for [`std::include!`].
648646
///

src/libstd/macros.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,10 @@ pub mod builtin {
452452
#[macro_export]
453453
macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
454454

455-
/// Parse the file provided in the argument as an expression or an
456-
/// item according to the context. This file is located relative
457-
/// to the current file (similarly to how modules are found).
455+
/// Parse a file as an expression or an item according to the context.
456+
///
457+
/// The file is located relative to the current file (similarly to how
458+
/// modules are found)
458459
///
459460
/// Using this macro is often a bad idea, because if the file is
460461
/// parsed as an expression, it is going to be placed in the

0 commit comments

Comments
 (0)