Skip to content

Commit

Permalink
Merge pull request #364 from CAESIUS-TIM/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Dec 11, 2023
2 parents 22bca3d + 5e9fecf commit 3f9df2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/start/panicking.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ use cortex_m_rt::entry;
#[entry]
fn main() -> ! {
let xs = [0, 1, 2];
let i = xs.len() + 1;
let i = xs.len();
let _y = xs[i]; // out of bounds access
loop {}
Expand Down

0 comments on commit 3f9df2b

Please sign in to comment.