Skip to content

Commit ac9df58

Browse files
committed
Change task linked failure interface in manual
1 parent d948254 commit ac9df58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/rust.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,9 +1717,7 @@ is bounds-checked at run-time. When the check fails, it will put the
17171717
task in a _failing state_.
17181718

17191719
~~~~
1720-
# let buildr = task::builder();
1721-
# task::unsupervise(buildr);
1722-
# do task::run(buildr) {
1720+
# do task::spawn_unlinked {
17231721
17241722
(~[1, 2, 3, 4])[0];
17251723
(~[mut 'x', 'y'])[1] = 'z';

0 commit comments

Comments
 (0)