* let po = comm::port();
* let ch = comm::chan(po);
*
- * task::spawn {||
+ * do task::spawn {
* comm::send(ch, "Hello, World");
- * });
+ * }
*
* io::println(comm::recv(p));
* ~~~
* # Example
*
* ~~~
- * spawn {||
+ * do spawn {
* log(error, "Hello, World!");
* }
* ~~~
*
* let po = comm::port();
* let ch = comm::chan(po);
- * let ch = spawn_listener {|po|
+ * let ch = do spawn_listener |po| {
* // Now the child has a port called 'po' to read from and
* // an environment-captured channel called 'ch'.
* };
* # Example
*
* ~~~
- * task::unkillable {||
+ * do task::unkillable {
* // detach / yield / destroy must all be called together
* rustrt::rust_port_detach(po);
* // This must not result in the current task being killed