Skip to content

Commit

Permalink
Merge pull request #132 from KershawChang/fix_typo
Browse files Browse the repository at this point in the history
Should be 'VecDeque'
  • Loading branch information
jonathanpallant authored Feb 20, 2024
2 parents ff71aa5 + 7d2a251 commit 94d6e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training-slides/src/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ fn main() {
* Can access any element (`queue[i]`) quickly
* Can push/pop from the front or back easily

## Downsides of Vec
## Downsides of VecDeque

* Cannot borrow it as a single `&[T]` slice without moving items around
* Not great for insertion in the middle
Expand Down

0 comments on commit 94d6e0c

Please sign in to comment.