summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-08-02 17:17:07 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-08-02 18:06:33 -0700
commit009352101d129fe782d2abc18a61d064ebc245a1 (patch)
tree2ea2a575c8b2f3d58fd26ff2abefefa94ae09ee9 /src/libsyntax
parentff00edb7e1fd669b7a333e0b3842f3751ee6d573 (diff)
downloadrust-009352101d129fe782d2abc18a61d064ebc245a1.tar.gz
rust-009352101d129fe782d2abc18a61d064ebc245a1.zip
Shift writer_util to a derived impl attached to the writer trait
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/print/pp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs
index 9228ea2e0d5..2d1a418f831 100644
--- a/src/libsyntax/print/pp.rs
+++ b/src/libsyntax/print/pp.rs
@@ -411,7 +411,7 @@ impl printer for printer {
             {offset: 0, pbreak: broken(inconsistent)}
         }
     }
-    fn write_str(s: ~str) {
+    fn print_str(s: ~str) {
         while self.pending_indentation > 0 {
             self.out.write_str(~" ");
             self.pending_indentation -= 1;
@@ -471,7 +471,7 @@ impl printer for printer {
             assert (L == len);
             // assert L <= space;
             self.space -= len;
-            self.write_str(*s);
+            self.print_str(*s);
           }
           EOF {
             // EOF should never get here.