De-mode comm::Chan
This commit is contained in:
parent
777baeb298
commit
fe12da0864
63 changed files with 173 additions and 173 deletions
|
|
@ -29,7 +29,7 @@ fn main() {
|
|||
let mut n: int = 2 + 3 * 7;
|
||||
let s: ~str = ~"hello there";
|
||||
let p = comm::Port();
|
||||
let ch = comm::Chan(p);
|
||||
let ch = comm::Chan(&p);
|
||||
task::spawn(|| a(ch) );
|
||||
task::spawn(|| b(ch) );
|
||||
let mut x: int = 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue