Skip to content

Commit 3f9df2b

Browse files
authored
Merge pull request #364 from CAESIUS-TIM/patch-1
#363
2 parents 22bca3d + 5e9fecf commit 3f9df2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/start/panicking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use cortex_m_rt::entry;
8787
#[entry]
8888
fn main() -> ! {
8989
let xs = [0, 1, 2];
90-
let i = xs.len() + 1;
90+
let i = xs.len();
9191
let _y = xs[i]; // out of bounds access
9292
9393
loop {}

0 commit comments

Comments
 (0)