Skip to content

Commit 7353ff2

Browse files
committed
SliceKind::VarLen: make doc-comment render correctly.
(The backticks were rendering badly in VSCode.)
1 parent 6286a1d commit 7353ff2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustc_mir/hair/pattern/_match.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,11 @@ impl<'a, 'tcx> MatchCheckCtxt<'a, 'tcx> {
620620
enum SliceKind {
621621
/// Patterns of length `n` (`[x, y]`).
622622
FixedLen(u64),
623-
/// Patterns using the `..` notation (`[x, .., y]`). Captures any array constructor of `length
624-
/// >= i + j`. In the case where `array_len` is `Some(_)`, this indicates that we only care
625-
/// about the first `i` and the last `j` values of the array, and everything in between is a
626-
/// wildcard `_`.
623+
/// Patterns using the `..` notation (`[x, .., y]`).
624+
/// Captures any array constructor of `length >= i + j`.
625+
/// In the case where `array_len` is `Some(_)`,
626+
/// this indicates that we only care about the first `i` and the last `j` values of the array,
627+
/// and everything in between is a wildcard `_`.
627628
VarLen(u64, u64),
628629
}
629630

0 commit comments

Comments
 (0)