Skip to content

Commit 69eca55

Browse files
conditional-compilation: add a space in cfg.cfg_attr.attribute-list
The other uses of `cfg` and `cfg_attr` have spaces on both sides of the `=`, but in the example of nested `cfg_attr` attributes, the space afterwards was missing; add it.
1 parent ec78de0 commit 69eca55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conditional-compilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Zero, one, or more attributes may be listed. Multiple attributes will each be ex
443443
> ```
444444
445445
> [!NOTE]
446-
> The `cfg_attr` can expand to another `cfg_attr`. For example, `#[cfg_attr(target_os = "linux", cfg_attr(feature = "multithreaded", some_other_attribute))]` is valid. This example would be equivalent to `#[cfg_attr(all(target_os = "linux", feature ="multithreaded"), some_other_attribute)]`.
446+
> The `cfg_attr` can expand to another `cfg_attr`. For example, `#[cfg_attr(target_os = "linux", cfg_attr(feature = "multithreaded", some_other_attribute))]` is valid. This example would be equivalent to `#[cfg_attr(all(target_os = "linux", feature = "multithreaded"), some_other_attribute)]`.
447447
448448
r[cfg.macro]
449449
### The `cfg` macro

0 commit comments

Comments
 (0)