We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed93759 commit 1a79644Copy full SHA for 1a79644
library/alloc/src/vec/mod.rs
@@ -369,7 +369,7 @@ mod spec_extend;
369
/// scratch space that it may use however it wants. It will generally just do
370
/// whatever is most efficient or otherwise easy to implement. Do not rely on
371
/// 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
+/// buffer may simply be reused by another allocation. Even if you zero a `Vec`'s memory
373
/// first, that might not actually happen because the optimizer does not consider
374
/// this a side-effect that must be preserved. There is one case which we will
375
/// not break, however: using `unsafe` code to write to the excess capacity,
0 commit comments