File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 150
150
//! Any `with_capacity` constructor will instruct the collection to allocate
151
151
//! enough space for the specified number of elements. Ideally this will be for
152
152
//! exactly that many elements, but some implementation details may prevent
153
- //! this. [`Vec`] and [`VecDeque`] can be relied on to allocate exactly the
154
- //! requested amount, though. Use `with_capacity` when you know exactly how many
155
- //! elements will be inserted, or at least have a reasonable upper-bound on that
156
- //! number.
153
+ //! this. See collection-specific documentation for details. In general, use
154
+ //! `with_capacity` when you know exactly how many elements will be inserted, or
155
+ //! at least have a reasonable upper-bound on that number.
157
156
//!
158
157
//! When anticipating a large influx of elements, the `reserve` family of
159
158
//! methods can be used to hint to the collection how much room it should make
You can’t perform that action at this time.
0 commit comments