diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-28 14:43:15 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-28 19:41:56 -0800 |
| commit | 91676f3fa699c3d715c5420b5c8c0828627aa09e (patch) | |
| tree | 64e0997aabcdffa330faeda8af188f885619c3a3 /src/libsyntax | |
| parent | 9f11485357f5de2a11f8d6feda36ee2fe63f3347 (diff) | |
| download | rust-91676f3fa699c3d715c5420b5c8c0828627aa09e.tar.gz rust-91676f3fa699c3d715c5420b5c8c0828627aa09e.zip | |
syntax: Don't add an extra space before the last comma...
...when printing struct update expressions.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 47d139b8641..c3c8ecff9f7 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1153,7 +1153,6 @@ fn print_expr(s: ps, &&expr: @ast::expr) { commasep_cmnt(s, consistent, (*fields), print_field, get_span); match wth { Some(expr) => { - if vec::len((*fields)) > 0u { space(s.s); } ibox(s, indent_unit); word(s.s, ~","); space(s.s); |
