Skip to content

Commit

Permalink
Merge pull request #297 from mattdeboard/reptition-fix
Browse files Browse the repository at this point in the history
Fix typo in error messages.
  • Loading branch information
BurntSushi committed Nov 18, 2016
2 parents 7968aad + 45ad923 commit 288f772
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions regex-syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1526,11 +1526,12 @@ impl fmt::Display for ErrorKind {
write!(f, "Number does not correspond to a Unicode scalar \
value: '{}'.", c),
MissingBase10 =>
write!(f, "Missing maximum in counted reptition operator."),
write!(f, "Missing maximum in counted
repetition operator."),
RepeaterExpectsExpr =>
write!(f, "Missing expression for reptition operator."),
write!(f, "Missing expression for repetition operator."),
RepeaterUnexpectedExpr(ref e) =>
write!(f, "Invalid application of reptition operator to: \
write!(f, "Invalid application of repetition operator to: \
'{}'.", e),
UnclosedCaptureName(ref s) =>
write!(f, "Capture name group for '{}' is not closed. \
Expand Down

0 comments on commit 288f772

Please sign in to comment.