diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-06-01 12:26:42 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-06-01 12:26:42 -0700 |
| commit | 4eef7b613c7f9435bec591376170791de41fa38c (patch) | |
| tree | 9fe3b3a01da6b44a8be9fe7c8e95007a8ea3f911 /src | |
| parent | 49742b86be15f391dc5153d5c9db3572f5142f83 (diff) | |
| download | rust-4eef7b613c7f9435bec591376170791de41fa38c.tar.gz rust-4eef7b613c7f9435bec591376170791de41fa38c.zip | |
Bug fixes to pprust.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 330c1c65302..e8983c63ad9 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -285,6 +285,7 @@ fn print_item(&ps s, &@ast::item item) { } case (ast::item_mod(?id,?_mod,_)) { head(s, "mod"); + word_nbsp(s, id); bopen(s); for (@ast::item itm in _mod.items) {print_item(s, itm);} bclose(s, item.span); @@ -481,11 +482,11 @@ fn print_expr(&ps s, &@ast::expr expr) { alt (expr.node) { case (ast::expr_vec(?exprs,?mut,_)) { + ibox(s.s, indent_unit); + word(s.s, "["); if (mut == ast::mut) { word_nbsp(s, "mutable"); } - ibox(s.s, indent_unit); - word(s.s, "["); commasep_exprs(s, inconsistent, exprs); word(s.s, "]"); end(s.s); |
