book icon indicating copy to clipboard operation
book copied to clipboard

Non lexical lifetimes are incorrectly mentioned as described in the book

Open krishnakumarg1984 opened this issue 3 years ago • 1 comments

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • lexical
  • I have checked the latest main branch 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.

krishnakumarg1984 avatar Nov 09 '22 21:11 krishnakumarg1984

This mention of NLL has now been completly removed.

newca12 avatar Nov 11 '22 13:11 newca12

Thanks for the original report here, @krishnakumarg1984, and for the follow-up, @newca12! Closing this as having been completed long since!

chriskrycho avatar Apr 04 '24 23:04 chriskrycho