]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #94022 - jongiddy:cow-into-owned-docs, r=Dylan-DPC
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 26 Apr 2022 11:22:26 +0000 (13:22 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Apr 2022 11:22:26 +0000 (13:22 +0200)
commiteaf8beb3f32b089b426a435794214ee0eaed8fec
treeca85f6e081ca6bd1b018ce006a269130d03d4b9b
parentd6a57d3730a4e523c433e5528988a2a4f111e94e
parent9f4934ec19af7fe970fc1278973ec5763ea0312c
Rollup merge of #94022 - jongiddy:cow-into-owned-docs, r=Dylan-DPC

Clarify that `Cow::into_owned` returns owned data

Two sections of the `Cow::into_owned` docs imply that `into_owned` returns a `Cow`. Clarify that it returns the underlying owned object, either cloned or extracted from the `Cow`.
library/alloc/src/borrow.rs