about summary refs log tree commit diff
path: root/src/libstd/vec.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-09-24 22:16:43 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-09-26 17:05:59 -0700
commit409182de6d74889134209e7fc98174eb8f267170 (patch)
tree8f8c542b198cdb323038aa803ff6bff7433bd3bb /src/libstd/vec.rs
parent09a53381974bcf42c0b081cbfcd9f20f1e5d4f04 (diff)
Update the compiler to not use printf/printfln
Diffstat (limited to 'src/libstd/vec.rs')
-rw-r--r--src/libstd/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index e54717053e9..be5ab35ff88 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -1003,7 +1003,7 @@ impl<'self,T> ImmutableVector<'self, T> for &'self [T] {
      * ```rust
      * let v = &[1,2,3,4];
      * for win in v.window_iter() {
-     *     printfln!(win);
+     *     println!("{:?}", win);
      * }
      * ```
      *
@@ -1032,7 +1032,7 @@ impl<'self,T> ImmutableVector<'self, T> for &'self [T] {
      * ```rust
      * let v = &[1,2,3,4,5];
      * for win in v.chunk_iter() {
-     *     printfln!(win);
+     *     println!("{:?}", win);
      * }
      * ```
      *