Skip to content

Commit 7a7146c

Browse files
committed
Adjust documentation in HAIR.
1 parent bc88063 commit 7a7146c

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/hair/pattern

1 file changed

+1
-1
lines changed

src/librustc_mir/hair/pattern/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub enum PatternKind<'tcx> {
162162

163163
/// Matches against a slice, checking the length and extracting elements.
164164
/// irrefutable when there is a slice pattern and both `prefix` and `suffix` are empty.
165-
/// e.g., `&[ref xs..]`.
165+
/// e.g., `&[ref xs @ ..]`.
166166
Slice {
167167
prefix: Vec<Pattern<'tcx>>,
168168
slice: Option<Pattern<'tcx>>,

0 commit comments

Comments
 (0)