We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
matches!
1 parent f7ebe19 commit e76a184Copy full SHA for e76a184
src/libcore/macros.rs
@@ -238,7 +238,10 @@ macro_rules! debug_assert_ne {
238
($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert_ne!($($arg)*); })
239
}
240
241
-/// Returns whether the given expression matches (any of) the given pattern(s).
+/// Returns whether the given expression matches any of the given patterns.
242
+///
243
+/// Like in a `match` expression, the pattern can be optionally followed by `if`
244
+/// and a guard expression that has access to names bound by the pattern.
245
///
246
/// # Examples
247
0 commit comments