File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -322,20 +322,16 @@ pub unsafe fn dropped<T>() -> T {
322
322
/// println!("{:?}", &data[0]);
323
323
/// ```
324
324
///
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
330
329
/// allocation:
331
330
///
332
331
/// ```
333
332
/// let data: Vec<Vec<u32>> = vec![Vec::new(); 1000];
334
333
/// println!("{:?}", &data[0]);
335
334
/// ```
336
- ///
337
- /// For large arrays this is probably advisable
338
- /// anyway to avoid blowing the stack.
339
335
#[ inline]
340
336
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
341
337
pub unsafe fn uninitialized < T > ( ) -> T {
You can’t perform that action at this time.
0 commit comments