diff options
| author | Brian Anderson <andersrb@gmail.com> | 2012-09-28 22:19:43 -0600 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2012-09-28 22:19:43 -0600 |
| commit | d0333a8e414e510dace81c4d6fc40a0c77c11ea7 (patch) | |
| tree | a007f8a4fc169443f00a362256a951eaafe656f3 /src/libstd | |
| parent | 90f959aad4a98aaa50dc258b96afd3db9ed0b1ba (diff) | |
std: Make the DuplexStream constructor public
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/comm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs index 4bed7d13d0b..4d87ebeac99 100644 --- a/src/libstd/comm.rs +++ b/src/libstd/comm.rs @@ -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(); |
