diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-05-02 15:53:09 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-05-02 15:53:09 -0700 |
| commit | e0cef5cf406016d5c1685a164a27571d182fa873 (patch) | |
| tree | 7ebf57ed10c0ed920b95dbca54f324012546b1a0 /src/libsyntax/parse | |
| parent | 617ce2b7ee330bbcc7ce8eb87160c71ad995639b (diff) | |
| download | rust-e0cef5cf406016d5c1685a164a27571d182fa873.tar.gz rust-e0cef5cf406016d5c1685a164a27571d182fa873.zip | |
fix typo
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
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