Swap return value order in pipes::oneshot Issue #4496
This commit is contained in:
parent
eb8fd119c6
commit
bb7d7204e2
4 changed files with 8 additions and 7 deletions
|
@ -512,7 +512,7 @@ mod tests {
|
|||
fn test_mutex_arc_condvar() {
|
||||
let arc = ~MutexARC(false);
|
||||
let arc2 = ~arc.clone();
|
||||
let (c,p) = pipes::oneshot();
|
||||
let (p,c) = pipes::oneshot();
|
||||
let (c,p) = (~mut Some(move c), ~mut Some(move p));
|
||||
do task::spawn |move arc2, move p| {
|
||||
// wait until parent gets in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue