book
book copied to clipboard
Non lexical lifetimes are incorrectly mentioned as described in the book
- I have searched open and closed issues and pull requests for duplicates, using these search terms:
- lexical
- I have checked the latest
mainbranch to see if this has already been fixed, in this file:- src/ch04-02-references-and-borrowing.md
URL to the section(s) of the book with this problem: https://github.com/rust-lang/book/blob/main/src/ch04-02-references-and-borrowing.md
Description of the problem: The book says:
The ability of the compiler to tell that a reference is no longer being used at a point before the end of the scope is called Non-Lexical Lifetimes (NLL for short), and you can read more about it in The Edition Guide.
However, NLLs are not defined in the edition guide, but are rather covered in this blog post.
Suggested fix: Update the text to read something like:
you can read more about it in this blog post.
This mention of NLL has now been completly removed.
Thanks for the original report here, @krishnakumarg1984, and for the follow-up, @newca12! Closing this as having been completed long since!