diff options
| author | John Clements <clements@racket-lang.org> | 2013-04-21 17:27:19 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-04-28 09:51:16 -0700 |
| commit | 2985f74ff345638af2391a74b60e8e949691e694 (patch) | |
| tree | 37a86a4f7764ad7b087cba97eb1c80876eaf5e13 /src/libsyntax | |
| parent | aa346401baae03aeeba5d3ff10006eae7b60ca0e (diff) | |
| download | rust-2985f74ff345638af2391a74b60e8e949691e694.tar.gz rust-2985f74ff345638af2391a74b60e8e949691e694.zip | |
s/one_tuple/trailing_comma (more accurate name)
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index facf10c3cd9..8a276c8ce63 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1181,7 +1181,7 @@ pub impl Parser { self.bump(); // (e) is parenthesized e // (e,) is a tuple with only one field, e - let mut one_tuple = false; + let mut trailing_comma = false; if *self.token == token::RPAREN { hi = self.span.hi; self.bump(); @@ -1195,13 +1195,13 @@ pub impl Parser { es.push(self.parse_expr()); } else { - one_tuple = true; + trailing_comma = true; } } hi = self.span.hi; self.expect(&token::RPAREN); - return if es.len() == 1 && !one_tuple { + return if es.len() == 1 && !trailing_comma { self.mk_expr(lo, self.span.hi, expr_paren(es[0])) } else { |
