Skip to content

Commit 12e30f7

Browse files
committed
Add ')' in advaced_slice_patterns error message
1 parent e0b4c37 commit 12e30f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
620620
pattern.span,
621621
"multiple-element slice matches anywhere \
622622
but at the end of a slice (e.g. \
623-
`[0, ..xs, 0]` are experimental")
623+
`[0, ..xs, 0]`) are experimental")
624624
}
625625
ast::PatVec(..) => {
626626
self.gate_feature("slice_patterns",

0 commit comments

Comments
 (0)