Skip to content

Commit

Permalink
Corrected error for array out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
L0uisc committed Apr 8, 2019
1 parent b93ec30 commit 7ac22b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch03-02-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ $ cargo run
Compiling arrays v0.1.0 (file:///projects/arrays)
Finished dev [unoptimized + debuginfo] target(s) in 0.31 secs
Running `target/debug/arrays`
thread '<main>' panicked at 'index out of bounds: the len is 5 but the index is
10', src/main.rs:6
thread 'main' panicked at 'index out of bounds: the len is 5 but the index is
10', src/main.rs:5:19
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```

Expand Down

0 comments on commit 7ac22b1

Please sign in to comment.