]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcore/borrow.rs

Simple merge
Simple merge
Simple merge