about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-28 01:21:39 +0100
committerGitHub <noreply@github.com>2020-10-28 01:21:39 +0100
commit6967005e6e626f4ff62f53b971c00e6e12d2e618 (patch)
treec6a688134b74c34d56b0baf7f57a2d748bf1bd9a /compiler/rustc_parse/src
parent3349b6847f8b396a976b86e1b5c211a6b3bf3177 (diff)
parent710c1f4aca7a2f443190486946fabd4dd3333ec3 (diff)
downloadrust-6967005e6e626f4ff62f53b971c00e6e12d2e618.tar.gz
rust-6967005e6e626f4ff62f53b971c00e6e12d2e618.zip
Rollup merge of #78453 - Storyyeller:patch-1, r=jonas-schievink
Fix typo in comments
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 5994eda966f..c2a13d4b0de 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -831,7 +831,7 @@ impl<'a> Parser<'a> {
         self.struct_span_err(self.token.span, &format!("unexpected token: `{}`", actual)).emit();
     }
 
-    // We need and identifier or integer, but the next token is a float.
+    // We need an identifier or integer, but the next token is a float.
     // Break the float into components to extract the identifier or integer.
     // FIXME: With current `TokenCursor` it's hard to break tokens into more than 2
     // parts unless those parts are processed immediately. `TokenCursor` should either