Skip to content

Commit 288f772

Browse files
authored
Merge pull request #297 from mattdeboard/reptition-fix
Fix typo in error messages.
2 parents 7968aad + 45ad923 commit 288f772

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

regex-syntax/src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1526,11 +1526,12 @@ impl fmt::Display for ErrorKind {
15261526
write!(f, "Number does not correspond to a Unicode scalar \
15271527
value: '{}'.", c),
15281528
MissingBase10 =>
1529-
write!(f, "Missing maximum in counted reptition operator."),
1529+
write!(f, "Missing maximum in counted
1530+
repetition operator."),
15301531
RepeaterExpectsExpr =>
1531-
write!(f, "Missing expression for reptition operator."),
1532+
write!(f, "Missing expression for repetition operator."),
15321533
RepeaterUnexpectedExpr(ref e) =>
1533-
write!(f, "Invalid application of reptition operator to: \
1534+
write!(f, "Invalid application of repetition operator to: \
15341535
'{}'.", e),
15351536
UnclosedCaptureName(ref s) =>
15361537
write!(f, "Capture name group for '{}' is not closed. \

0 commit comments

Comments
 (0)