diff options
| author | daniellimws <weesoong.lim@gmail.com> | 2018-10-29 19:37:58 +0800 |
|---|---|---|
| committer | daniellimws <weesoong.lim@gmail.com> | 2018-10-29 19:37:58 +0800 |
| commit | 15334e03b757c13578d15f49c5950eab21956437 (patch) | |
| tree | ef1a6933ed8db63e53c92aa41f71e50d39cdc5bc /src/liballoc | |
| parent | b089e79562aff01cee9b6246f9352ffecef4b3b9 (diff) | |
| download | rust-15334e03b757c13578d15f49c5950eab21956437.tar.gz rust-15334e03b757c13578d15f49c5950eab21956437.zip | |
Fix documentation for those that allocate on heap
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index da4651ca779..8826a836a91 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -472,8 +472,8 @@ impl<T> From<Box<T>> for Pin<Box<T>> { impl<'a, T: Copy> From<&'a [T]> for Box<[T]> { /// Converts a `&[T]` into a `Box<[T]>` /// - /// This conversion does not allocate on the heap - /// but performs a copy of `slice`. + /// This conversion allocates on the heap + /// and performs a copy of `slice`. /// /// # Examples /// ```rust @@ -494,7 +494,8 @@ impl<'a, T: Copy> From<&'a [T]> for Box<[T]> { impl<'a> From<&'a str> for Box<str> { /// Converts a `&str` into a `Box<str>` /// - /// This conversion does not allocate on the heap and happens in place. + /// This conversion allocates on the heap + /// and performs a copy of `s`. /// /// # Examples /// ```rust |
