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

Ferris is incorrect about code compilation in chapter 3.2 #2675

Closed
ExtraE113 opened this issue Mar 29, 2021 · 3 comments
Closed

Ferris is incorrect about code compilation in chapter 3.2 #2675

ExtraE113 opened this issue Mar 29, 2021 · 3 comments

Comments

@ExtraE113
Copy link

Niceties Thanks for writing this book. It's super helpful in learning rust!

This is a minor thing, but I figured I'd point it out. If I get the opportunity I'll open a PR with a fix.

On this page: https://doc.rust-lang.org/book/ch03-02-data-types.html#invalid-array-element-access

The text of the book says that the code for the invalid array element access will compile (which it will) but Ferris says it won't.

@ExtraE113
Copy link
Author

ExtraE113 commented Mar 30, 2021

Ok, after perusing the repo for a while I don't see where Ferris is added-- he's not included in the markdown, and a (quick) look through tools doesn't reveal him either.

EDIT: See this commit: ac4faae

This should be fixed, but it isn't.

@ExtraE113
Copy link
Author

See also #2417

@carols10cents
Copy link
Member

The book has been fixed, but the fix hasn't ridden the Rust release trains to stable yet. You can read the new text at doc.rust-lang.org/nightly/book/ch03-02-data-types.html#invalid-array-element-access (note nightly in the URL instead of stable).

Thanks!

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

No branches or pull requests

2 participants