We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e9319 commit 1070231Copy full SHA for 1070231
src/libcollections/vec.rs
@@ -231,6 +231,7 @@ impl<T> Vec<T> {
231
///
232
/// * `ptr` needs to have been previously allocated via `String`/`Vec<T>`
233
/// (at least, it's highly likely to be incorrect if it wasn't).
234
+ /// * `length` needs to be the length that less than or equal to `capacity`.
235
/// * `capacity` needs to be the capacity that the pointer was allocated with.
236
237
/// Violating these may cause problems like corrupting the allocator's
0 commit comments