]> git.lizzy.rs Git - rust.git/commit
Restore RawVec::reserve* documentation
authorMike Hommey <mh@glandium.org>
Thu, 10 May 2018 00:16:10 +0000 (09:16 +0900)
committerMike Hommey <mh@glandium.org>
Thu, 10 May 2018 00:16:12 +0000 (09:16 +0900)
commit9c4e5b3b6cbf9b31ac7bd74d760214e36e79bfff
tree19a92e41959342fd168c9edb52007ccc55459f16
parente5f80f2a4f016bf724a1cfb580619d71c8fd39ec
Restore RawVec::reserve* documentation

When the RawVec::try_reserve* methods were added, they took the place of
the ::reserve* methods in the source file, and new ::reserve* methods
wrapping the new try_reserve* methods were created. But the
documentation didn't move along, such that:
 - reserve_* methods are barely documented.
 - try_reserve_* methods have unmodified documentation from reserve_*,
   such that their documentation indicate they are panicking/aborting.

This moves the documentation back to the right methods, with a
placeholder documentation for the try_reserve* methods.
src/liballoc/raw_vec.rs