about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-20 11:54:27 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-20 11:54:27 +0100
commit7353ff20d66267df821d9d161b914ef8fc513304 (patch)
treee17b597cd34b20af524cb01fd21ae05dbcfcf9d3
parent6286a1d7eb68875504536c78f6316cad7e7490b2 (diff)
downloadrust-7353ff20d66267df821d9d161b914ef8fc513304.tar.gz
rust-7353ff20d66267df821d9d161b914ef8fc513304.zip
`SliceKind::VarLen`: make doc-comment render correctly.
(The backticks were rendering badly in VSCode.)
-rw-r--r--src/librustc_mir/hair/pattern/_match.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_mir/hair/pattern/_match.rs b/src/librustc_mir/hair/pattern/_match.rs
index c3720328506..f267be812c3 100644
--- a/src/librustc_mir/hair/pattern/_match.rs
+++ b/src/librustc_mir/hair/pattern/_match.rs
@@ -620,10 +620,11 @@ impl<'a, 'tcx> MatchCheckCtxt<'a, 'tcx> {
 enum SliceKind {
     /// Patterns of length `n` (`[x, y]`).
     FixedLen(u64),
-    /// Patterns using the `..` notation (`[x, .., y]`). Captures any array constructor of `length
-    /// >= i + j`. In the case where `array_len` is `Some(_)`, this indicates that we only care
-    /// about the first `i` and the last `j` values of the array, and everything in between is a
-    /// wildcard `_`.
+    /// Patterns using the `..` notation (`[x, .., y]`).
+    /// Captures any array constructor of `length >= i + j`.
+    /// In the case where `array_len` is `Some(_)`,
+    /// this indicates that we only care about the first `i` and the last `j` values of the array,
+    /// and everything in between is a wildcard `_`.
     VarLen(u64, u64),
 }