]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #89401 - owengage:master, r=joshtriplett
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 4 Oct 2021 06:13:22 +0000 (23:13 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 06:13:22 +0000 (23:13 -0700)
Add truncate note to Vec::resize

A very minor addition to the `Vec::resize` documentation to point out the `truncate` method.
When I was searching for something matching `truncate` I managed to miss it, along with some colleagues. We later found it by chance. We did find `resize` however, so I was hoping to point it out in the documentation.

1  2 
library/alloc/src/vec/mod.rs

Simple merge