diff options
| author | bors <bors@rust-lang.org> | 2013-03-19 21:57:49 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-19 21:57:49 -0700 |
| commit | f3c879fdd8aad67cf4f6edd3aacb0189c284c920 (patch) | |
| tree | 872abff783f535fce31af87b8bceeba0f10bf8dd /src/libsyntax/print | |
| parent | 4cb9ca92962dbbe8ffd813c016e9d6f809dd285b (diff) | |
| parent | f8dab3a6c0adff63854d5e238961a771419d23b7 (diff) | |
| download | rust-f3c879fdd8aad67cf4f6edd3aacb0189c284c920.tar.gz rust-f3c879fdd8aad67cf4f6edd3aacb0189c284c920.zip | |
auto merge of #5442 : pcwalton/rust/extern-block-restriction, r=pcwalton
r? @graydon
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 9b8448bc2d9..e2d48979fab 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -424,7 +424,7 @@ pub fn print_type_ex(s: @ps, &&ty: @ast::Ty, print_colons: bool) { ast::m_imm => () } print_type(s, mt.ty); - word(s.s, ~" * "); + word(s.s, ~", .."); print_expr(s, v); word(s.s, ~"]"); } @@ -452,7 +452,7 @@ pub fn print_foreign_item(s: @ps, item: @ast::foreign_item) { end(s); // end the outer fn box } ast::foreign_item_const(t) => { - head(s, ~"const"); + head(s, ~"static"); print_ident(s, item.ident); word_space(s, ~":"); print_type(s, t); @@ -471,7 +471,7 @@ pub fn print_item(s: @ps, &&item: @ast::item) { (s.ann.pre)(ann_node); match /*bad*/ copy item.node { ast::item_const(ty, expr) => { - head(s, visibility_qualified(item.vis, ~"const")); + head(s, visibility_qualified(item.vis, ~"static")); print_ident(s, item.ident); word_space(s, ~":"); print_type(s, ty); |
