about summary refs log tree commit diff
path: root/src/libstd/io/pipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/io/pipe.rs')
-rw-r--r--src/libstd/io/pipe.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/pipe.rs b/src/libstd/io/pipe.rs
index 64b2518fab1..5137db305f0 100644
--- a/src/libstd/io/pipe.rs
+++ b/src/libstd/io/pipe.rs
@@ -125,12 +125,12 @@ mod test {
         let (tx, rx) = channel();
         spawn(proc() {
             let mut out = out;
-            out.write([10]).unwrap();
+            out.write(&[10]).unwrap();
             rx.recv(); // don't close the pipe until the other read has finished
         });
 
         let mut buf = [0, ..10];
-        input.read(buf).unwrap();
+        input.read(&mut buf).unwrap();
         tx.send(());
     }
 }