Skip to content

Commit b458ecf

Browse files
authored
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`
2 parents 04ba153 + 1a79644 commit b458ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ mod spec_extend;
369369
/// scratch space that it may use however it wants. It will generally just do
370370
/// whatever is most efficient or otherwise easy to implement. Do not rely on
371371
/// removed data to be erased for security purposes. Even if you drop a `Vec`, its
372-
/// buffer may simply be reused by another `Vec`. Even if you zero a `Vec`'s memory
372+
/// buffer may simply be reused by another allocation. Even if you zero a `Vec`'s memory
373373
/// first, that might not actually happen because the optimizer does not consider
374374
/// this a side-effect that must be preserved. There is one case which we will
375375
/// not break, however: using `unsafe` code to write to the excess capacity,

0 commit comments

Comments
 (0)