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

(minor) outdated explanation in Appendix 02 Table B-3 "::path" #3841

Open
kklibo opened this issue Feb 14, 2024 · 0 comments
Open

(minor) outdated explanation in Appendix 02 Table B-3 "::path" #3841

kklibo opened this issue Feb 14, 2024 · 0 comments

Comments

@kklibo
Copy link

kklibo commented Feb 14, 2024

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • appendix 02
    • B-3
    • ::path
    • etc...
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • appendix-02-operators.md

URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/appendix-02-operators.html

Description of the problem:
Outdated explanation of ::path in Appendix B: Table B-3
As of the 2018 edition, starting a path with :: refers to the extern prelude, rather than the crate root.
(source: https://doc.rust-lang.org/reference/paths.html#path-qualifiers)

Suggested fix:
Change explanation to

Path relative to the extern prelude (i.e., an explicitly absolute path)

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

No branches or pull requests

2 participants