]> git.lizzy.rs Git - rust.git/commitdiff
`SliceKind::VarLen`: make doc-comment render correctly.
authorMazdak Farrokhzad <twingoow@gmail.com>
Fri, 20 Dec 2019 10:54:27 +0000 (11:54 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Fri, 20 Dec 2019 10:54:27 +0000 (11:54 +0100)
(The backticks were rendering badly in VSCode.)

src/librustc_mir/hair/pattern/_match.rs

index c37203285069573e24cb8819f01613d2d31a2872..f267be812c3d276ccfc90f45f27e986068e142a9 100644 (file)
@@ -620,10 +620,11 @@ fn is_foreign_non_exhaustive_variant(&self, ty: Ty<'tcx>, variant: &VariantDef)
 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),
 }