]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #99570 - XrXr:box-from-slice-docs, r=thomcc
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 28 Aug 2022 07:35:13 +0000 (09:35 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Aug 2022 07:35:13 +0000 (09:35 +0200)
Box::from(slice): Clarify that contents are copied

A colleague mentioned that they interpreted the old text
as saying that only the pointer and the length are copied.
Add a clause so it is more clear that the pointed to contents
are also copied.

1  2 
library/alloc/src/boxed.rs

Simple merge