Skip to content
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

tutorial(Spawning): Unclear "bounded by 'static" terminology #581

Closed
joshchoo opened this issue Jun 29, 2021 · 2 comments · Fixed by #583
Closed

tutorial(Spawning): Unclear "bounded by 'static" terminology #581

joshchoo opened this issue Jun 29, 2021 · 2 comments · Fixed by #583

Comments

@joshchoo
Copy link
Contributor

In the Spawning section of the Tokio tutorial, there is the following sentence:

The link in the info-box above uses the terminology "bounded by 'static" rather than "its type outlives 'static" or "the value is 'static" for T: 'static.

However, the info-box in the tutorial doesn't mention "bounded by 'static" anywhere. Rather the info-box states:

It is a common misconception that 'static always means "lives forever", but this is not the case. Just because a value is 'static does not mean that you have a memory leak. You can read more in Common Rust Lifetime Misconceptions.

It would be clearer to change/clarify the "bounded by 'static" to make it more understandable.

@Darksonn
Copy link
Contributor

What uses the terminology "bounded by" is the article behind the link in the infobox.

@joshchoo
Copy link
Contributor Author

Ah, I understand now. Thank you for making it clear!

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

Successfully merging a pull request may close this issue.

2 participants