@@ -726,7 +726,7 @@ impl<'tcx> Constructor<'tcx> {
726
726
727
727
/// This returns one wildcard pattern for each argument to this constructor.
728
728
///
729
- /// This must be consistent with `apply`, `specialize_one_pattern` and `arity`.
729
+ /// This must be consistent with `apply`, `specialize_one_pattern`, and `arity`.
730
730
fn wildcard_subpatterns < ' a > (
731
731
& self ,
732
732
cx : & MatchCheckCtxt < ' a , ' tcx > ,
@@ -801,7 +801,7 @@ impl<'tcx> Constructor<'tcx> {
801
801
/// For instance, a tuple pattern `(_, 42, Some([]))` has the arity of 3.
802
802
/// A struct pattern's arity is the number of fields it contains, etc.
803
803
///
804
- /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern` and `apply`.
804
+ /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern`, and `apply`.
805
805
fn arity < ' a > ( & self , cx : & MatchCheckCtxt < ' a , ' tcx > , ty : Ty < ' tcx > ) -> u64 {
806
806
debug ! ( "Constructor::arity({:#?}, {:?})" , self , ty) ;
807
807
match ty. kind {
@@ -823,7 +823,7 @@ impl<'tcx> Constructor<'tcx> {
823
823
/// Apply a constructor to a list of patterns, yielding a new pattern. `pats`
824
824
/// must have as many elements as this constructor's arity.
825
825
///
826
- /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern` and `arity`.
826
+ /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern`, and `arity`.
827
827
///
828
828
/// Examples:
829
829
/// `self`: `Constructor::Single`
@@ -1316,7 +1316,7 @@ impl<'tcx> IntRange<'tcx> {
1316
1316
None
1317
1317
}
1318
1318
} else {
1319
- // If the range sould not be treated exhaustively, fallback to checking for inclusion.
1319
+ // If the range should not be treated exhaustively, fallback to checking for inclusion.
1320
1320
if other_lo <= lo && hi <= other_hi { Some ( self . clone ( ) ) } else { None }
1321
1321
}
1322
1322
}
0 commit comments