File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -196,13 +196,14 @@ pub macro assert_matches {
196
196
} ,
197
197
}
198
198
199
- /// A macro for defining `#[ cfg]` match-like statements .
199
+ /// Selects code at compile-time based on ` cfg` predicates .
200
200
///
201
- /// The `cfg_select!` macro checks a series of `#[cfg]` conditions, and picks the branch that
202
- /// belongs to the first condition that evaluates to true.
201
+ /// This macro evaluates, at compile-time, a series of `cfg` predicates, selects
202
+ /// the first that is true, and emits the code guarded by that predicate. The
203
+ /// code guarded by other predicates is not emitted.
203
204
///
204
- /// An optional trailing `_` wildcard match arm can be used to specify a fallback branch .
205
- /// If none of the conditions evaluate to ` true` , a compile error is emitted.
205
+ /// An optional trailing `_` wildcard can be used to specify a fallback. If
206
+ /// none of the predicates are true, a [`compile_error`] is emitted.
206
207
///
207
208
/// # Example
208
209
///
You can’t perform that action at this time.
0 commit comments