File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 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 {
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" ) ]
341337pub unsafe fn uninitialized < T > ( ) -> T {
You can’t perform that action at this time.
0 commit comments