1
Fork 0

std: Make the DuplexStream constructor public

This commit is contained in:
Brian Anderson 2012-09-28 22:19:43 -06:00
parent 90f959aad4
commit d0333a8e41

View file

@ -46,7 +46,7 @@ impl<T: Send, U: Send> DuplexStream<T, U> : Selectable {
}
/// Creates a bidirectional stream.
fn DuplexStream<T: Send, U: Send>()
pub fn DuplexStream<T: Send, U: Send>()
-> (DuplexStream<T, U>, DuplexStream<U, T>)
{
let (c2, p1) = pipes::stream();