]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #34989 - frewsxcv:fix-set-len-doc-example, r=nagisa
authorManish Goregaokar <manishsmail@gmail.com>
Sun, 24 Jul 2016 09:48:48 +0000 (15:18 +0530)
committerGitHub <noreply@github.com>
Sun, 24 Jul 2016 09:48:48 +0000 (15:18 +0530)
commit52c293c2bb3be96f3a8cc4043037e90e5ed4dda8
tree55141cdef2ce60b07578873cd760ec87ad91a263
parent89b9ddd0ddab2af0f6923244047c7c9fa216a048
parent1e0043eb6c445fb96981b6d46dae4c93af4fbda3
Rollup merge of #34989 - frewsxcv:fix-set-len-doc-example, r=nagisa

Fix incorrect 'memory leak' example for `Vec::set_len`.

Example was written in https://github.com/rust-lang/rust/pull/34911

Issue was brought up in this comment:

https://github.com/rust-lang/rust/commit/a005b2cd2ac679da7393e537aa05e2b7d32d36d5#commitcomment-18346958