@@ -1509,7 +1509,7 @@ pub fn is_useful<'p, 'a, 'tcx>(
1509
1509
// 1) If the user is matching against a non-exhaustive
1510
1510
// enum, there is no point in enumerating all possible
1511
1511
// 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:
1513
1513
// ```
1514
1514
// let err: io::ErrorKind = ...;
1515
1515
// match err {
@@ -1885,9 +1885,9 @@ fn split_grouped_constructors<'p, 'tcx>(
1885
1885
1886
1886
lint_overlapping_patterns ( tcx, hir_id, ctor_range, ty, overlaps) ;
1887
1887
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.
1891
1891
for IntRange { range, .. } in
1892
1892
borders. windows ( 2 ) . filter_map ( |window| match ( window[ 0 ] , window[ 1 ] ) {
1893
1893
( Border :: JustBefore ( n) , Border :: JustBefore ( m) ) => {
0 commit comments