]> git.lizzy.rs Git - rust.git/commitdiff
fixup wording
authorAlexis Beingessner <a.beingessner@gmail.com>
Wed, 19 Aug 2015 19:36:14 +0000 (12:36 -0700)
committerSteve Klabnik <steve@steveklabnik.com>
Thu, 1 Oct 2015 19:54:40 +0000 (15:54 -0400)
src/libcollections/vec.rs

index ee44fb0541ec1f6ef607f2b9d34c423365800cf1..bcde523307c835d83dee31bcf64608c2a416eac7 100644 (file)
 /// sufficient. `push` and `insert` *will* (re)allocate if `len() == capacity()`.
 /// That is, the reported capacity is completely accurate, and can be relied on.
 /// It can even be used to manually free the memory allocated by a Vec if
-/// desired. Bulk insertion methods *may* reallocate unnecessarily.
+/// desired. Bulk insertion methods *may* reallocate, even when not necessary.
 ///
 /// Vec does not guarantee any particular growth strategy when reallocating
 /// when full, nor when `reserve` is called. The current strategy is basic