Skip to content

Commit 0de49df

Browse files
committed
Rename cfg.attr.general to intro, and move it to the start
This updates to follow the attribute template where the intro should be first.
1 parent 5e11aa0 commit 0de49df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/conditional-compilation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,16 @@ Example values:
318318
r[cfg.attr]
319319
### The `cfg` attribute
320320

321+
r[cfg.attr.intro]
322+
The `cfg` [attribute] conditionally includes the thing it is attached to based on a configuration predicate.
323+
321324
r[cfg.attr.syntax]
322325
```grammar,configuration
323326
@root CfgAttribute -> `cfg` `(` ConfigurationPredicate `)`
324327
```
325328

326329
<!-- should we say they're active attributes here? -->
327330

328-
r[cfg.attr.general]
329-
The `cfg` [attribute] conditionally includes the thing it is attached to based on a configuration predicate.
330-
331331
r[cfg.attr.syntax-explanation]
332332
It is written as `cfg`, `(`, a configuration predicate, and finally `)`.
333333

0 commit comments

Comments
 (0)