mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 12:23:22 +00:00
Adjust documentation in HAIR.
This commit is contained in:
parent
cec8649933
commit
984f9db946
@ -162,7 +162,7 @@ pub enum PatternKind<'tcx> {
|
|||||||
|
|
||||||
/// Matches against a slice, checking the length and extracting elements.
|
/// Matches against a slice, checking the length and extracting elements.
|
||||||
/// irrefutable when there is a slice pattern and both `prefix` and `suffix` are empty.
|
/// irrefutable when there is a slice pattern and both `prefix` and `suffix` are empty.
|
||||||
/// e.g., `&[ref xs..]`.
|
/// e.g., `&[ref xs @ ..]`.
|
||||||
Slice {
|
Slice {
|
||||||
prefix: Vec<Pattern<'tcx>>,
|
prefix: Vec<Pattern<'tcx>>,
|
||||||
slice: Option<Pattern<'tcx>>,
|
slice: Option<Pattern<'tcx>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user