about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-20 01:13:41 +0800
committerkennytm <kennytm@gmail.com>2019-02-20 11:59:13 +0800
commit6e991011dcb47c00cb44bc3427c22fca3b127414 (patch)
tree2b66c1210b96ac258261996f66693aa2c513d129 /src/libsyntax/parse
parente3a8f7db479ce6562bfc312f412b65dc4f3c77d5 (diff)
parentf8b6449f80b75c8d42b1ebbe4c1fb6d4bfec7ace (diff)
downloadrust-6e991011dcb47c00cb44bc3427c22fca3b127414.tar.gz
rust-6e991011dcb47c00cb44bc3427c22fca3b127414.zip
Rollup merge of #58562 - dlrobertson:fix_nits, r=alexreg
Fix style nits

Fix style nits discovered in reading code.

r? @alexreg
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index e22047938e5..b1fb38d8eaf 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4173,7 +4173,8 @@ impl<'a> Parser<'a> {
                 err.emit();
                 self.bump();
             } else if self.eat(&token::BinOp(token::Or)) {
-                // No op.
+                // This is a No-op. Continue the loop to parse the next
+                // pattern.
             } else {
                 return Ok(pats);
             }