mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
core: Update task spawning example
This commit is contained in:
+3
-3
@@ -21,9 +21,9 @@
|
||||
|
||||
Example:
|
||||
|
||||
> spawn("Hello, World", fn (&&msg: str) {
|
||||
> log(debug, msg);
|
||||
> });
|
||||
> spawn {||
|
||||
> log(debug, "Hello, World!");
|
||||
> };
|
||||
|
||||
*/
|
||||
import cast = unsafe::reinterpret_cast;
|
||||
|
||||
Reference in New Issue
Block a user