Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Nov 1, 2019
1 parent d663c27 commit cc4583d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustc_mir/hair/pattern/_match.rs
Expand Up @@ -1509,7 +1509,7 @@ pub fn is_useful<'p, 'a, 'tcx>(
// 1) If the user is matching against a non-exhaustive
// enum, there is no point in enumerating all possible
// variants, because the user can't actually match
// against them himself, e.g., in an example like:
// against them themselves, e.g., in an example like:
// ```
// let err: io::ErrorKind = ...;
// match err {
Expand Down Expand Up @@ -1885,9 +1885,9 @@ fn split_grouped_constructors<'p, 'tcx>(

lint_overlapping_patterns(tcx, hir_id, ctor_range, ty, overlaps);

// We're going to iterate through every pair of borders, making sure that each
// represents an interval of nonnegative length, and convert each such interval
// into a constructor.
// We're going to iterate through every adjacent pair of borders, making sure that
// each represents an interval of nonnegative length, and convert each such
// interval into a constructor.
for IntRange { range, .. } in
borders.windows(2).filter_map(|window| match (window[0], window[1]) {
(Border::JustBefore(n), Border::JustBefore(m)) => {
Expand Down

0 comments on commit cc4583d

Please sign in to comment.