about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNadrieril <nadrieril@gmail.com>2019-09-23 19:09:30 +0200
committerNadrieril <nadrieril+git@gmail.com>2019-11-01 17:23:03 +0000
commitcc4583dcd3c3206eda0a71a71730ff0c5501c64c (patch)
treeeb0e8fa2791646e3c3d1e927a95ebad7e30dda8c
parentd663c276da262f4b3b7f67ac45257f0b451ab070 (diff)
downloadrust-cc4583dcd3c3206eda0a71a71730ff0c5501c64c.tar.gz
rust-cc4583dcd3c3206eda0a71a71730ff0c5501c64c.zip
Wording
-rw-r--r--src/librustc_mir/hair/pattern/_match.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_mir/hair/pattern/_match.rs b/src/librustc_mir/hair/pattern/_match.rs
index 8dace0bab7d..2e46cb9f8c9 100644
--- a/src/librustc_mir/hair/pattern/_match.rs
+++ b/src/librustc_mir/hair/pattern/_match.rs
@@ -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 {
@@ -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)) => {