about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2019-02-18 18:34:42 +0000
committerDan Robertson <dan@dlrobertson.com>2019-02-18 22:22:19 +0000
commitf8b6449f80b75c8d42b1ebbe4c1fb6d4bfec7ace (patch)
tree8a4ae10c6521f02d9afa274d155682c25e1551be /src/libsyntax/parse
parent684b09ba7f7b2e163a198fd843128e7260e24e6c (diff)
downloadrust-f8b6449f80b75c8d42b1ebbe4c1fb6d4bfec7ace.tar.gz
rust-f8b6449f80b75c8d42b1ebbe4c1fb6d4bfec7ace.zip
Fix style nits
Fix style nits discovered in reading code.
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);
             }