diff options
Diffstat (limited to 'src/libstd/io/comm_adapters.rs')
| -rw-r--r-- | src/libstd/io/comm_adapters.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/comm_adapters.rs b/src/libstd/io/comm_adapters.rs index 7f94af8307e..7a78800c33d 100644 --- a/src/libstd/io/comm_adapters.rs +++ b/src/libstd/io/comm_adapters.rs @@ -38,7 +38,7 @@ pub struct PortReader { } impl PortReader { - pub fn new(port: Port<~[u8]>) -> PortReader<P> { + pub fn new(port: Port<~[u8]>) -> PortReader { PortReader { buf: None, pos: 0, @@ -94,7 +94,7 @@ pub struct ChanWriter { } impl ChanWriter { - pub fn new(chan: C) -> ChanWriter<C> { + pub fn new(chan: Chan<~[u8]>) -> ChanWriter { ChanWriter { chan: chan } } } |
