@@ -737,7 +737,7 @@ impl<'tcx> Constructor<'tcx> {
737
737
738
738
/// This returns one wildcard pattern for each argument to this constructor.
739
739
///
740
- /// This must be consistent with `apply`, `specialize_one_pattern` and `arity`.
740
+ /// This must be consistent with `apply`, `specialize_one_pattern`, and `arity`.
741
741
fn wildcard_subpatterns < ' a > (
742
742
& self ,
743
743
cx : & MatchCheckCtxt < ' a , ' tcx > ,
@@ -815,7 +815,7 @@ impl<'tcx> Constructor<'tcx> {
815
815
/// For instance, a tuple pattern `(_, 42, Some([]))` has the arity of 3.
816
816
/// A struct pattern's arity is the number of fields it contains, etc.
817
817
///
818
- /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern` and `apply`.
818
+ /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern`, and `apply`.
819
819
fn arity < ' a > ( & self , cx : & MatchCheckCtxt < ' a , ' tcx > , ty : Ty < ' tcx > ) -> u64 {
820
820
debug ! ( "Constructor::arity({:#?}, {:?})" , self , ty) ;
821
821
match self {
@@ -837,7 +837,7 @@ impl<'tcx> Constructor<'tcx> {
837
837
/// Apply a constructor to a list of patterns, yielding a new pattern. `pats`
838
838
/// must have as many elements as this constructor's arity.
839
839
///
840
- /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern` and `arity`.
840
+ /// This must be consistent with `wildcard_subpatterns`, `specialize_one_pattern`, and `arity`.
841
841
///
842
842
/// Examples:
843
843
/// `self`: `Constructor::Single`
@@ -1369,7 +1369,7 @@ impl<'tcx> IntRange<'tcx> {
1369
1369
None
1370
1370
}
1371
1371
} else {
1372
- // If the range sould not be treated exhaustively, fallback to checking for inclusion.
1372
+ // If the range should not be treated exhaustively, fallback to checking for inclusion.
1373
1373
if other_lo <= lo && hi <= other_hi { Some ( self . clone ( ) ) } else { None }
1374
1374
}
1375
1375
}
0 commit comments