We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
book/src/start/panicking.md
Line 90 in 22bca3d
The given example doesn't effectively show that in Rust, indices start from 0; it might even give the impression that indices begin at 1.
A common mistake is forgetting to subtract 1, as seen here: Right: let i = xs.len() - 1; Wrong: let i = xs.len();
let i = xs.len() - 1;
let i = xs.len();
The text was updated successfully, but these errors were encountered:
rust-embedded#363
5e9fecf
Merge pull request #364 from CAESIUS-TIM/patch-1
3f9df2b
#363
No branches or pull requests
book/src/start/panicking.md
Line 90 in 22bca3d
The given example doesn't effectively show that in Rust, indices start from 0; it might even give the impression that indices begin at 1.
A common mistake is forgetting to subtract 1, as seen here:
Right:
let i = xs.len() - 1;
Wrong:
let i = xs.len();
The text was updated successfully, but these errors were encountered: