From e7bfb353b107cb150faab9d331c99ea2b91f3725 Mon Sep 17 00:00:00 2001 From: Herbert Reiter <46045854+damoasda@users.noreply.github.com> Date: Sun, 30 Jan 2022 17:15:23 +0100 Subject: [PATCH] Remove duplicate paragraph after No Starch related changes --- src/ch08-01-vectors.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ch08-01-vectors.md b/src/ch08-01-vectors.md index 04fc8d4c5..cbebf3af5 100644 --- a/src/ch08-01-vectors.md +++ b/src/ch08-01-vectors.md @@ -108,12 +108,6 @@ range of existing elements. As an example, let’s see what happens when we have a vector of five elements and then we try to access an element at index 100 with each technique, as shown in Listing 8-6. -Rust has two ways to reference an element so you can choose how the program -behaves when you try to use an index value that the vector doesn’t have an -element for. As an example, let’s see what a program will do if it has a vector -that holds five elements and then tries to access an element at index 100, as -shown in Listing 8-6. - ```rust,should_panic,panics {{#rustdoc_include ../listings/ch08-common-collections/listing-08-06/src/main.rs:here}} ```