Skip to content

Commit 38e3f51

Browse files
authored
cfg-attr-multi: Fix typo
`and()` is not a valid configuration predicate, but `all()` is.
1 parent cbbc5a7 commit 38e3f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/2539-cfg_attr-multiple-attrs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn bewitche() {}
102102
Note: The `cfg_attr` can expand to another `cfg_attr`. For example,
103103
`#[cfg_attr(linux, cfg_attr(feature = "multithreaded", some_other_attribute))`
104104
is valid. This example would be equivalent to
105-
`#[cfg_attr(and(linux, feaure ="multithreaded"), some_other_attribute)]`.
105+
`#[cfg_attr(all(linux, feaure ="multithreaded"), some_other_attribute)]`.
106106

107107
## Warning When Zero Attributes
108108

0 commit comments

Comments
 (0)