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:
parent
9c5865d8ca
commit
c342a74b3e
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user