about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2017-02-09 13:58:48 -0500
committerSean Griffin <sean@seantheprogrammer.com>2017-02-09 13:58:48 -0500
commitb3937ea862e15321e85537ac6bd63ad51099c23f (patch)
tree026df22b927cde6cff787f1895f83a15c2a0bada /src/rustllvm/RustWrapper.cpp
parente7fc53b8f0595d9b5be6a3b64d29d3cfed7c7199 (diff)
downloadrust-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