Skip to content

Commit 0bf16ff

Browse files
committed
Rollup merge of #27498 - nagisa:eeeeeeh, r=Gankro
r? @gankro
2 parents 6be272c + c5d8779 commit 0bf16ff

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/libcore/mem.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,20 +322,16 @@ pub unsafe fn dropped<T>() -> T {
322322
/// println!("{:?}", &data[0]);
323323
/// ```
324324
///
325-
/// Hopefully this example emphasizes to you exactly how delicate
326-
/// and dangerous doing this is. Note that the `vec!` macro
327-
/// *does* let you initialize every element with a value that
328-
/// is only `Clone`, so the following is equivalent and vastly
329-
/// less dangerous, as long as you can live with an extra heap
325+
/// This example emphasizes exactly how delicate and dangerous doing this is.
326+
/// Note that the `vec!` macro *does* let you initialize every element with a
327+
/// value that is only `Clone`, so the following is semantically equivalent and
328+
/// vastly less dangerous, as long as you can live with an extra heap
330329
/// allocation:
331330
///
332331
/// ```
333332
/// let data: Vec<Vec<u32>> = vec![Vec::new(); 1000];
334333
/// println!("{:?}", &data[0]);
335334
/// ```
336-
///
337-
/// For large arrays this is probably advisable
338-
/// anyway to avoid blowing the stack.
339335
#[inline]
340336
#[stable(feature = "rust1", since = "1.0.0")]
341337
pub unsafe fn uninitialized<T>() -> T {

0 commit comments

Comments
 (0)