You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"?
The text was updated successfully, but these errors were encountered:
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!
main
branch to see if this has already been fixed, in this file: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:
What does it mean for the lifetimes of references to be somewhere?
Suggested fix:
Replace "where" with "what"?
The text was updated successfully, but these errors were encountered: