@@ -1509,7 +1509,7 @@ pub fn is_useful<'p, 'a, 'tcx>(
15091509 // 1) If the user is matching against a non-exhaustive
15101510 // enum, there is no point in enumerating all possible
15111511 // variants, because the user can't actually match
1512- // against them himself , e.g., in an example like:
1512+ // against them themselves , e.g., in an example like:
15131513 // ```
15141514 // let err: io::ErrorKind = ...;
15151515 // match err {
@@ -1885,9 +1885,9 @@ fn split_grouped_constructors<'p, 'tcx>(
18851885
18861886 lint_overlapping_patterns ( tcx, hir_id, ctor_range, ty, overlaps) ;
18871887
1888- // We're going to iterate through every pair of borders, making sure that each
1889- // represents an interval of nonnegative length, and convert each such interval
1890- // into a constructor.
1888+ // We're going to iterate through every adjacent pair of borders, making sure that
1889+ // each represents an interval of nonnegative length, and convert each such
1890+ // interval into a constructor.
18911891 for IntRange { range, .. } in
18921892 borders. windows ( 2 ) . filter_map ( |window| match ( window[ 0 ] , window[ 1 ] ) {
18931893 ( Border :: JustBefore ( n) , Border :: JustBefore ( m) ) => {
0 commit comments