Skip to content

Commit d40dafd

Browse files
committed
Auto merge of #154095 - joboet:vec_clear_truncate, r=nnethercote
std: implement `clear` via `truncate` This gets rid of some `unsafe`. `truncate(0)` is even documented to be equivalent to `clear`, this makes that equivalence even more obvious.
2 parents 13452e5 + 2bc6f98 commit d40dafd

0 file changed

File tree

    0 commit comments

    Comments
     (0)