SliceKind::VarLen: make doc-comment render correctly.
(The backticks were rendering badly in VSCode.)
This commit is contained in:
parent
6286a1d7eb
commit
7353ff20d6
1 changed files with 5 additions and 4 deletions
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue