Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly mention that
Vec::reserve
is based on len not capacity
I spent a good chunk of time tracking down a buffer overrun bug that resulted from me mistakenly thinking that `reserve` was based on the current capacity not the current length. It would be helpful if this were called out explicitly in the docs.
- Loading branch information