Skip to content

Commit c30f7c9

Browse files
committed
Better phrasing for hygiene of include macro
1 parent eb2980c commit c30f7c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

library/core/src/macros/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,10 +1329,11 @@ pub(crate) mod builtin {
13291329
/// </pre>
13301330
/// </div>
13311331
///
1332-
/// If the included file is parsed as an expression, it is placed in the surrounding code
1333-
/// [unhygienically](https://doc.rust-lang.org/reference/macros-by-example.html#hygiene). This
1334-
/// could result in variables or functions being different from what the file expected if there
1335-
/// are variables or functions that have the same name in the current file.
1332+
/// The included file is placed in the surrounding code
1333+
/// [unhygienically](https://doc.rust-lang.org/reference/macros-by-example.html#hygiene). If
1334+
/// the included file is parsed as an expression and variables or functions share names across
1335+
/// both files, it could result in variables or functions being different from what the
1336+
/// included file expected.
13361337
///
13371338
/// The included file is located relative to the current file (similarly to how modules are
13381339
/// found). The provided path is interpreted in a platform-specific way at compile time. So,

0 commit comments

Comments
 (0)