From c342a74b3e547fb360a6979a2eb7fb98070843fe Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Tue, 12 Dec 2023 17:02:10 +0200 Subject: [PATCH] Having a `Vec` allows accessing mutating slice methods, too (#1578) I don't know why "read-only" was added. --- src/std-types/vec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std-types/vec.md b/src/std-types/vec.md index f128119e..0c8ea676 100644 --- a/src/std-types/vec.md +++ b/src/std-types/vec.md @@ -48,6 +48,6 @@ methods on a `Vec`. * To index the vector you use `[` `]`, but they will panic if out of bounds. Alternatively, using `get` will return an `Option`. The `pop` function will remove the last element. * Slices are covered on day 3. For now, students only need to know that a value - of type `Vec` gives access to all of the documented read-only slice methods, too. + of type `Vec` gives access to all of the documented slice methods, too.