Skip to content

Commit 02de11c

Browse files
mneumannbrson
authored andcommitted
Fix example code
1 parent 2a48aef commit 02de11c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/oldcomm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ across channels.
2424
# Example
2525
2626
~~~
27-
let po = comm::Port();
28-
let ch = comm::Chan(po);
27+
let po = oldcomm::Port();
28+
let ch = oldcomm::Chan(&po);
2929
3030
do task::spawn {
31-
comm::send(ch, "Hello, World");
31+
oldcomm::send(ch, ~"Hello, World");
3232
}
3333
34-
io::println(comm::recv(p));
34+
io::println(oldcomm::recv(po));
3535
~~~
3636
3737
# Note

0 commit comments

Comments
 (0)