Skip to content

Tutorial mentions non-existing variable #1958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
salty-horse opened this issue Mar 10, 2012 · 1 comment
Closed

Tutorial mentions non-existing variable #1958

salty-horse opened this issue Mar 10, 2012 · 1 comment

Comments

@salty-horse
Copy link
Contributor

In the "Spawning a task" section of the tutorial, the text refers to thechild_task variable in this snippet:

let some_value = 22;
task::spawn {||
    std::io::println("This executes in the child task.");
    std::io::println(#fmt("%d", some_value));
}

No child_task is mentioned. From subsequent examples, I assume it should be let child_task = task::spawn {||.

@brson
Copy link
Contributor

brson commented Mar 10, 2012

Fixed by 57af1e9. task::spawn doesn't return a value now.

@brson brson closed this as completed Mar 10, 2012
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
* Fix some broken links under bootstrapping.

* Fix more broken links for bootstrapping.
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
* Fix some broken links under bootstrapping.

* Fix more broken links for bootstrapping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants