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

Confusing sentence #3577

Closed
seishun opened this issue Mar 15, 2023 · 1 comment · Fixed by #3877
Closed

Confusing sentence #3577

seishun opened this issue Mar 15, 2023 · 1 comment · Fixed by #3877

Comments

@seishun
Copy link
Contributor

seishun commented Mar 15, 2023

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • where the lifetimes of references
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • src/ch10-03-lifetime-syntax.md

URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/stable/book/ch10-03-lifetime-syntax.html#the-borrow-checker

Description of the problem:

Now that you know where the lifetimes of references are and how Rust analyzes lifetimes to ensure references will always be valid, let’s explore generic lifetimes of parameters and return values in the context of functions.

What does it mean for the lifetimes of references to be somewhere?

Suggested fix:

Replace "where" with "what"?

@chriskrycho
Copy link
Contributor

Ha! I can definitely make sense of the idea of lifetimes having a location – the whole section is about the sort of spatiotemporal dynamics of references! – but I think you're right that “what” is probably the right word here. If you’d like to open a PR to fix it, please do! If not, one of us will try to get to it as we work through revisions for the next edition of the book. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants