Skip to content

Commit ac721f8

Browse files
committed
tweak a comment
1 parent 6adefc3 commit ac721f8

File tree

1 file changed

+3
-2
lines changed
  • compiler/rustc_mir_build/src/builder/matches

1 file changed

+3
-2
lines changed

compiler/rustc_mir_build/src/builder/matches/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2902,8 +2902,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
29022902
None
29032903
}
29042904

2905-
/// Helper for [`Self::static_pattern_match`]. It does not recurse, meaning that it does not
2906-
/// handle or-patterns, or patterns for types with fields.
2905+
/// Helper for [`Self::static_pattern_match`], checking whether the value represented by the
2906+
/// `ValTree` matches the given pattern. This function does not recurse, meaning that it does
2907+
/// not handle or-patterns, or patterns for types with fields.
29072908
fn static_pattern_match_inner(
29082909
&self,
29092910
valtree: ty::ValTree<'tcx>,

0 commit comments

Comments
 (0)