Skip to content

Commit ded2bb5

Browse files
committed
Slight documentation change
1 parent f3dc7ae commit ded2bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/matches/single_match.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ fn check_opt_like<'a>(
147147
}
148148
}
149149

150-
/// Returns `true` if all of the types in the pattern are candidate enums
150+
/// Returns `true` if all of the types in the pattern are enums which we know
151+
/// won't be expanded in the future
151152
fn pat_in_candidate_enum<'a>(cx: &LateContext<'a>, ty: Ty<'a>, pat: &Pat<'_>) -> bool {
152153
let mut paths_and_types = Vec::new();
153154
collect_pat_paths(&mut paths_and_types, cx, pat, ty);

0 commit comments

Comments
 (0)