about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-08-27 21:34:03 -0700
committerJakub Wieczorek <jakub@jakub.cc>2014-09-30 18:54:03 +0200
commit13e00e4a3d18802ca6407e59935be9f2c33ec061 (patch)
tree86310bd54230b0caaa201dbf7485e104abe935f2 /src/libsyntax/parse
parent8a609521007c0c0c37d8d2396085631c08ad5232 (diff)
downloadrust-13e00e4a3d18802ca6407e59935be9f2c33ec061.tar.gz
rust-13e00e4a3d18802ca6407e59935be9f2c33ec061.zip
Update based on PR feedback
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index ccb398bf2fb..0780e68a062 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -579,7 +579,9 @@ impl<'a> Parser<'a> {
         if self.is_keyword(kw) {
             self.bump();
             true
-        } else { false }
+        } else {
+            false
+        }
     }
 
     /// If the given word is not a keyword, signal an error.