From 45ad9237b65adbfe5d66b8ebf76f7f83ae9b5054 Mon Sep 17 00:00:00 2001 From: Matt DeBoard Date: Thu, 17 Nov 2016 21:25:59 -0600 Subject: [PATCH] Fix typo in error messages. --- regex-syntax/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/regex-syntax/src/lib.rs b/regex-syntax/src/lib.rs index 7a561ed583..47da25f7d6 100644 --- a/regex-syntax/src/lib.rs +++ b/regex-syntax/src/lib.rs @@ -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. \