Skip to content

Commit 8d3b6db

Browse files
committed
Remove cfg.attr.syntax-explanation
I personally don't think we need to explain the grammar in English. I understand why it could be worthwhile, but I think so many parts of the grammar are so complex that it would be infeasible to describe it all this way.
1 parent e0b1eaa commit 8d3b6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/conditional-compilation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ The `cfg` [attribute] conditionally includes the thing it is attached to based o
358358
> ```
359359
360360
r[cfg.attr.syntax]
361+
The syntax for the `cfg` attribute is:
362+
361363
```grammar,configuration
362364
@root CfgAttribute -> `cfg` `(` ConfigurationPredicate `)`
363365
```
364366
365-
r[cfg.attr.syntax-explanation]
366-
It is written as `cfg`, `(`, a configuration predicate, and finally `)`.
367367

368368
r[cfg.attr.effect]
369369
If the predicate is true, the thing is rewritten to not have the `cfg` attribute on it. If the predicate is false, the thing is removed from the source code.

0 commit comments

Comments
 (0)