]> git.lizzy.rs Git - rust.git/commitdiff
Slight documentation change
authorMicha White <botahamec@outlook.com>
Fri, 10 Jun 2022 01:47:24 +0000 (21:47 -0400)
committerMicha White <botahamec@outlook.com>
Fri, 10 Jun 2022 17:12:03 +0000 (13:12 -0400)
clippy_lints/src/matches/single_match.rs

index 888ace687bb3bfd81d1b053d7cecfb2eec44c747..92091a0c3395f7b4578bc9e26126b1c5daa72e7a 100644 (file)
@@ -147,7 +147,8 @@ fn check_opt_like<'a>(
     }
 }
 
-/// Returns `true` if all of the types in the pattern are candidate enums
+/// Returns `true` if all of the types in the pattern are enums which we know
+/// won't be expanded in the future
 fn pat_in_candidate_enum<'a>(cx: &LateContext<'a>, ty: Ty<'a>, pat: &Pat<'_>) -> bool {
     let mut paths_and_types = Vec::new();
     collect_pat_paths(&mut paths_and_types, cx, pat, ty);