1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 22:37:28 +02:00

Having a Vec allows accessing mutating slice methods, too (#1578)

I don't know why "read-only" was added.
This commit is contained in:
Chayim Refael Friedman 2023-12-12 17:02:10 +02:00 committed by GitHub
parent 9c5865d8ca
commit c342a74b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
</details>