Skip to content

Commit 57af92a

Browse files
ehusstraviscross
authored andcommitted
Reword macro.decl.scope.macro_export.intro
Rewording to follow the template, and to try to be a little clearer.
1 parent 7600e94 commit 57af92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros-by-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ Macros to be imported with `macro_use` must be exported with
371371
r[macro.decl.scope.macro_export]
372372
### The `macro_export` attribute
373373

374-
By default, a macro has no path-based scope. However, if it has the `#[macro_export]` attribute, then it is declared in the crate root scope and can be referred to normally as such:
375374
r[macro.decl.scope.macro_export.intro]
375+
The *`macro_export` [attribute][attributes]* marks a macro to be publicly exported from the crate, and makes it available in the root of the crate for path-based resolution.
376376

377377

378378
r[macro.decl.scope.path.export]

0 commit comments

Comments
 (0)