mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Change task linked failure interface in manual
This commit is contained in:
parent
d948254ccb
commit
ac9df5841c
@ -1717,9 +1717,7 @@ is bounds-checked at run-time. When the check fails, it will put the
|
||||
task in a _failing state_.
|
||||
|
||||
~~~~
|
||||
# let buildr = task::builder();
|
||||
# task::unsupervise(buildr);
|
||||
# do task::run(buildr) {
|
||||
# do task::spawn_unlinked {
|
||||
|
||||
(~[1, 2, 3, 4])[0];
|
||||
(~[mut 'x', 'y'])[1] = 'z';
|
||||
|
Loading…
Reference in New Issue
Block a user