diff options
| author | Sean Griffin <sean@seantheprogrammer.com> | 2017-02-09 13:58:48 -0500 |
|---|---|---|
| committer | Sean Griffin <sean@seantheprogrammer.com> | 2017-02-09 13:58:48 -0500 |
| commit | b3937ea862e15321e85537ac6bd63ad51099c23f (patch) | |
| tree | 026df22b927cde6cff787f1895f83a15c2a0bada /src/rustllvm/RustWrapper.cpp | |
| parent | e7fc53b8f0595d9b5be6a3b64d29d3cfed7c7199 (diff) | |
| download | rust-b3937ea862e15321e85537ac6bd63ad51099c23f.tar.gz rust-b3937ea862e15321e85537ac6bd63ad51099c23f.zip | |
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
