]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #54860 - mandeep:vec-initialize, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Fri, 12 Oct 2018 14:04:04 +0000 (22:04 +0800)
committerGitHub <noreply@github.com>
Fri, 12 Oct 2018 14:04:04 +0000 (22:04 +0800)
commit365d4c94f6eca04c03203c005c5711eee30d5ff6
treee8735b7574efe95529cff75b7a176b7daa29a5ee
parent44a527a27a7fdeb14a208ca195a62b58df4b960d
parent1e584bf5c9858bee54a9fbff25ab28b2ad29eb57
Rollup merge of #54860 - mandeep:vec-initialize, r=alexcrichton

Add doc comments about safest way to initialize a vector of zeros

This adds more information about the vec! macro as discussed in #54628. I think this is a good starting point, but I think additional detail is needed so that we can explain why vec! is safer than the alternatives.