Skip to content

Commit 856c6df

Browse files
committed
tweak a comment
1 parent 58064fe commit 856c6df

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,8 +2903,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
29032903
None
29042904
}
29052905

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

0 commit comments

Comments
 (0)