]> git.lizzy.rs Git - rust.git/commit
auto merge of #19157 : aturon/rust/cow-doc, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 23 Nov 2014 09:51:49 +0000 (09:51 +0000)
committerbors <bors@rust-lang.org>
Sun, 23 Nov 2014 09:51:49 +0000 (09:51 +0000)
commit5ff10d5a230acde7e530ccee8cd4f805d6be7713
treec340ba123852fdd6e3dff6124f1b0d0c6666fcee
parentf5212e3cd7958368a41e0a4559693fd2374625e1
parentbab9564280a02ca04aa95e71c1c7163a31bc7867
auto merge of #19157 : aturon/rust/cow-doc, r=alexcrichton

This commit makes `Cow` more usable by allowing it to be applied to
unsized types (as was intended) and providing some basic `ToOwned`
implementations on slice types. It also corrects the documentation for
`Cow` to no longer mention `DerefMut`, and adds an example.

Closes #19123
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcore/borrow.rs