@@ -376,7 +376,7 @@ mod pipesy {
376376 priv use core:: kinds:: Owned ;
377377 use ptr:: to_mut_unsafe_ptr;
378378
379- pub fn init < T : Owned > ( ) -> ( client :: Oneshot < T > , server :: Oneshot < T > ) {
379+ pub fn init < T : Owned > ( ) -> ( server :: Oneshot < T > , client :: Oneshot < T > ) {
380380 pub use core:: pipes:: HasBuffer ;
381381
382382 let buffer = ~:: core:: pipes:: Buffer {
@@ -466,7 +466,7 @@ mod pipesy {
466466
467467 /// Initialiase a (send-endpoint, recv-endpoint) oneshot pipe pair.
468468 pub fn oneshot < T : Owned > ( ) -> ( PortOne < T > , ChanOne < T > ) {
469- let ( chan , port ) = oneshot:: init ( ) ;
469+ let ( port , chan ) = oneshot:: init ( ) ;
470470 ( PortOne :: new ( port) , ChanOne :: new ( chan) )
471471 }
472472
@@ -550,7 +550,7 @@ mod pipesy {
550550 pub mod streamp {
551551 priv use core:: kinds:: Owned ;
552552
553- pub fn init < T : Owned > ( ) -> ( client :: Open < T > , server :: Open < T > ) {
553+ pub fn init < T : Owned > ( ) -> ( server :: Open < T > , client :: Open < T > ) {
554554 pub use core:: pipes:: HasBuffer ;
555555 :: core:: pipes:: entangle ( )
556556 }
@@ -567,7 +567,7 @@ mod pipesy {
567567 :: core:: option:: Option < Open < T > > {
568568 {
569569 use super :: data;
570- let ( c , s ) = :: core:: pipes:: entangle ( ) ;
570+ let ( s , c ) = :: core:: pipes:: entangle ( ) ;
571571 let message = data ( x_0, s) ;
572572 if :: core:: pipes:: send ( pipe, message) {
573573 :: core:: pipes:: rt:: make_some ( c)
@@ -579,7 +579,7 @@ mod pipesy {
579579 pub fn data < T : Owned > ( pipe : Open < T > , x_0 : T ) -> Open < T > {
580580 {
581581 use super :: data;
582- let ( c , s ) = :: core:: pipes:: entangle ( ) ;
582+ let ( s , c ) = :: core:: pipes:: entangle ( ) ;
583583 let message = data ( x_0, s) ;
584584 :: core:: pipes:: send ( pipe, message) ;
585585 c
@@ -615,7 +615,7 @@ mod pipesy {
615615
616616 */
617617 pub fn stream < T : Owned > ( ) -> ( Port < T > , Chan < T > ) {
618- let ( c , s ) = streamp:: init ( ) ;
618+ let ( s , c ) = streamp:: init ( ) ;
619619
620620 ( Port {
621621 endp : Some ( s)
0 commit comments