Fix threadring

This commit is contained in:
Corey Richardson 2013-06-28 08:05:11 -04:00
parent fae4a9e5ba
commit 8f5cb92f89
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@
use std::os;
fn start(n_tasks: int, token: int) {
let mut (p, ch1) = stream();
let (p, ch1) = stream();
let mut p = p;
let mut ch1 = ch1;
ch1.send(token);
// XXX could not get this to work with a range closure
let mut i = 2;