From 7ac22b109a9303e0eff30883d6a9b6cd94204dda Mon Sep 17 00:00:00 2001 From: Louis Cloete <38226392+L0uisc@users.noreply.github.com> Date: Mon, 8 Apr 2019 16:59:32 +0200 Subject: [PATCH] Corrected error for array out of bounds --- src/ch03-02-data-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch03-02-data-types.md b/src/ch03-02-data-types.md index 7111284d92..02fcf5d66b 100644 --- a/src/ch03-02-data-types.md +++ b/src/ch03-02-data-types.md @@ -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 '
' 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. ```