Skip to content

Commit 08ac406

Browse files
committed
Add note about cfg(all()) -> cfg(true)
1 parent da1a483 commit 08ac406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3695-cfg_boolean_literal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Currently, the easiest ways for programmers to do this are to comment out the co
1717

1818
By allowing `#[cfg(false)]`, we can provide programmers with an explicit and more intuitive way to disable code, while retaining IDE functionality.
1919

20-
Allowing `cfg(true)` would also make temporarily enabling `cfg`'ed out code easier; a `true` may be added to a `cfg(any(..))` list.
20+
Allowing `cfg(true)` would also make temporarily enabling `cfg`'ed out code easier; a `true` may be added to a `cfg(any(..))` list. Adding a `cfg(all())` is the current equivalent of this.
2121

2222
# Guide-level explanation
2323
[guide-level-explanation]: #guide-level-explanation

0 commit comments

Comments
 (0)