diff options
| author | bors <bors@rust-lang.org> | 2019-12-11 05:31:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-12-11 05:31:28 +0000 |
| commit | ddca1e09c36a6ce21d95fec1619f23ba59b69c8a (patch) | |
| tree | 1d0ebc98f017b59a3a2a5b00ad2ef48cf894bc1e /src/liballoc | |
| parent | a2333023594826dc5078ce7129fafb85471b7857 (diff) | |
| parent | 398ed7fe2e81ee6afe200c1d3faa22c6a51d8457 (diff) | |
| download | rust-ddca1e09c36a6ce21d95fec1619f23ba59b69c8a.tar.gz rust-ddca1e09c36a6ce21d95fec1619f23ba59b69c8a.zip | |
Auto merge of #67202 - JohnTitor:rollup-0xjm5pz, r=JohnTitor
Rollup of 9 pull requests Successful merges: - #66377 (Update RELEASES.md for 1.40.0) - #67134 (Ensure that we get a hard error on generic ZST constants if their bod…) - #67152 (Sort auto trait and blanket implementations display) - #67154 (Fix typos in src/libcore/alloc.rs docs) - #67168 (corrected comment in E0478) - #67178 (Move non clean impls items) - #67180 (doc: Use .copied() instead of .cloned() in Vec example) - #67181 (Update hashmap doc) - #67193 (In which we start tracking polonius in `-Z self-profile`) Failed merges: r? @ghost
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 1a700b99056..6e165ccb919 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -92,7 +92,7 @@ use crate::raw_vec::RawVec; /// vec[0] = 7; /// assert_eq!(vec[0], 7); /// -/// vec.extend([1, 2, 3].iter().cloned()); +/// vec.extend([1, 2, 3].iter().copied()); /// /// for x in &vec { /// println!("{}", x); |
