diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-10-01 14:46:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-01 14:46:51 -0700 |
| commit | b458ecf29dc65e3e62785a4e3fdacbec1f18188b (patch) | |
| tree | 675c2adc6f4cfc1e87693f43721503191de022c8 | |
| parent | 04ba15392b6fefbb6121d7bab9a64a90437ce6a8 (diff) | |
| parent | 1a796441f5d4578923cb5dd6859dacc8c7b823d0 (diff) | |
| download | rust-b458ecf29dc65e3e62785a4e3fdacbec1f18188b.tar.gz rust-b458ecf29dc65e3e62785a4e3fdacbec1f18188b.zip | |
Rollup merge of #89440 - chrismit3s:issue-84488-fix, r=steveklabnik
Clarify a sentence in the documentation of Vec (#84488) I literally changed a single word, but this should clear up the confusion of #84488. Can probably be `rollup`ed :) (My first PR, hope I'm doing this right) fixes #84488 r? `@steveklabnik`
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index c37ec375561..92b6aaadf58 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -369,7 +369,7 @@ mod spec_extend; /// scratch space that it may use however it wants. It will generally just do /// whatever is most efficient or otherwise easy to implement. Do not rely on /// removed data to be erased for security purposes. Even if you drop a `Vec`, its -/// buffer may simply be reused by another `Vec`. Even if you zero a `Vec`'s memory +/// buffer may simply be reused by another allocation. Even if you zero a `Vec`'s memory /// first, that might not actually happen because the optimizer does not consider /// this a side-effect that must be preserved. There is one case which we will /// not break, however: using `unsafe` code to write to the excess capacity, |
