Auto merge of #28272 - Manishearth:improve_vec_docs, r=steveklabnik

r? @steveklabnik
This commit is contained in:
bors 2015-09-07 03:09:05 +00:00
commit 6f142404d6

View File

@ -32,6 +32,12 @@
/// Note that unlike array expressions this syntax supports all elements
/// which implement `Clone` and the number of elements doesn't have to be
/// a constant.
///
/// This will use `clone()` to duplicate an expression, so one should be careful
/// using this with types having a nonstandard `Clone` implementation. For
/// example, `vec![Rc::new(1); 5]` will create a vector of five references
/// to the same boxed integer value, not five references pointing to independently
/// boxed integers.
#[cfg(not(test))]
#[macro_export]
#[stable(feature = "rust1", since = "1.0.0")]