Skip to content

Commit cd51013

Browse files
committed
Unwrap cfg_attr
1 parent 9571d4d commit cd51013

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/conditional-compilation.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,10 @@ CfgAttrs -> Attr (`,` Attr)* `,`?
393393
```
394394

395395
r[cfg.cfg_attr.general]
396-
The `cfg_attr` [attribute] conditionally includes [attributes] based on a
397-
configuration predicate.
396+
The `cfg_attr` [attribute] conditionally includes [attributes] based on a configuration predicate.
398397

399398
r[cfg.cfg_attr.behaviour]
400-
When the configuration predicate is true, this attribute expands out to the
401-
attributes listed after the predicate. For example, the following module will
402-
either be found at `linux.rs` or `windows.rs` based on the target.
399+
When the configuration predicate is true, this attribute expands out to the attributes listed after the predicate. For example, the following module will either be found at `linux.rs` or `windows.rs` based on the target.
403400

404401
<!-- ignore: `mod` needs multiple files -->
405402
```rust,ignore
@@ -409,8 +406,7 @@ mod os;
409406
```
410407

411408
r[cfg.cfg_attr.attribute-list]
412-
Zero, one, or more attributes may be listed. Multiple attributes will each be
413-
expanded into separate attributes. For example:
409+
Zero, one, or more attributes may be listed. Multiple attributes will each be expanded into separate attributes. For example:
414410

415411
<!-- ignore: fake attributes -->
416412
```rust,ignore

0 commit comments

Comments
 (0)