File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -472,8 +472,8 @@ impl<T> From<Box<T>> for Pin<Box<T>> {
472
472
impl < ' a , T : Copy > From < & ' a [ T ] > for Box < [ T ] > {
473
473
/// Converts a `&[T]` into a `Box<[T]>`
474
474
///
475
- /// This conversion does not allocate on the heap
476
- /// but performs a copy of `slice`.
475
+ /// This conversion allocates on the heap
476
+ /// and performs a copy of `slice`.
477
477
///
478
478
/// # Examples
479
479
/// ```rust
@@ -494,7 +494,8 @@ impl<'a, T: Copy> From<&'a [T]> for Box<[T]> {
494
494
impl < ' a > From < & ' a str > for Box < str > {
495
495
/// Converts a `&str` into a `Box<str>`
496
496
///
497
- /// This conversion does not allocate on the heap and happens in place.
497
+ /// This conversion allocates on the heap
498
+ /// and performs a copy of `s`.
498
499
///
499
500
/// # Examples
500
501
/// ```rust
You can’t perform that action at this time.
0 commit comments