aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-12 17:20:07 +0200
committerMarijn Haverbeke <[email protected]>2011-05-12 21:30:35 +0200
commit6510f1ce7cb026ceb98689583c13f18c1e7c2c12 (patch)
treedaee2983e121887082fbba929919d2a2dccef36c /src/comp/pretty
parentRemove some truly wrong logic in parse_constrs (diff)
downloadrust-6510f1ce7cb026ceb98689583c13f18c1e7c2c12.tar.xz
rust-6510f1ce7cb026ceb98689583c13f18c1e7c2c12.zip
Change module dereference syntax from . to ::
This will need to be a snapshot.
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index d380f0b7..071e076c 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -751,7 +751,7 @@ fn print_path(ps s, ast.path path) {
auto first = true;
for (str id in path.node.idents) {
if (first) {first = false;}
- else {wrd(s.s, ".");}
+ else {wrd(s.s, "::");}
wrd(s.s, id);
}
if (Vec.len[@ast.ty](path.node.types) > 0u) {
@@ -856,7 +856,7 @@ fn print_view_item(ps s, @ast.view_item item) {
auto first = true;
for (str elt in ids) {
if (first) {first = false;}
- else {wrd(s.s, ".");}
+ else {wrd(s.s, ":");}
wrd(s.s, elt);
}
}