Skip to content

Commit

Permalink
cfg-attr-multi: Fix typo
Browse files Browse the repository at this point in the history
`and()` is not a valid configuration predicate, but `all()` is.
  • Loading branch information
Havvy authored Oct 9, 2018
1 parent cbbc5a7 commit 38e3f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/2539-cfg_attr-multiple-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn bewitche() {}
Note: The `cfg_attr` can expand to another `cfg_attr`. For example,
`#[cfg_attr(linux, cfg_attr(feature = "multithreaded", some_other_attribute))`
is valid. This example would be equivalent to
`#[cfg_attr(and(linux, feaure ="multithreaded"), some_other_attribute)]`.
`#[cfg_attr(all(linux, feaure ="multithreaded"), some_other_attribute)]`.

## Warning When Zero Attributes

Expand Down

0 comments on commit 38e3f51

Please sign in to comment.