about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-05-02 15:53:09 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-05-02 15:53:09 -0700
commite0cef5cf406016d5c1685a164a27571d182fa873 (patch)
tree7ebf57ed10c0ed920b95dbca54f324012546b1a0 /src/libsyntax/parse
parent617ce2b7ee330bbcc7ce8eb87160c71ad995639b (diff)
downloadrust-e0cef5cf406016d5c1685a164a27571d182fa873.tar.gz
rust-e0cef5cf406016d5c1685a164a27571d182fa873.zip
fix typo
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index fbd1203dec9..02e6c5e1c8d 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2934,7 +2934,7 @@ impl<'a> Parser<'a> {
                                 if let Ok(snippet) = self.sess.source_map().span_to_snippet(*sp) {
                                     err.span_suggestion(
                                         *sp,
-                                        "parenthesis are required to parse this as an expression",
+                                        "parentheses are required to parse this as an expression",
                                         format!("({})", snippet),
                                         Applicability::MachineApplicable,
                                     );
@@ -2979,7 +2979,7 @@ impl<'a> Parser<'a> {
                     "struct literals are not allowed here",
                 );
                 err.multipart_suggestion(
-                    "surround the struct literal with parenthesis",
+                    "surround the struct literal with parentheses",
                     vec![
                         (lo.shrink_to_lo(), "(".to_string()),
                         (expr.span.shrink_to_hi(), ")".to_string()),
@@ -3661,7 +3661,7 @@ impl<'a> Parser<'a> {
                     .unwrap_or_else(|_| pprust::expr_to_string(&lhs));
                 err.span_suggestion(
                     lhs.span,
-                    "parenthesis are required to parse this as an expression",
+                    "parentheses are required to parse this as an expression",
                     format!("({})", snippet),
                     Applicability::MachineApplicable,
                 );
@@ -4982,7 +4982,7 @@ impl<'a> Parser<'a> {
                             if let Ok(snippet) = self.sess.source_map().span_to_snippet(*sp) {
                                 err.span_suggestion(
                                     *sp,
-                                    "parenthesis are required to parse this as an expression",
+                                    "parentheses are required to parse this as an expression",
                                     format!("({})", snippet),
                                     Applicability::MachineApplicable,
                                 );