提交 fe33e581 编写于 作者: N Nicolette Verlinden

Make docs for Vec::push() use vec! with square brackets

上级 48606e3e
......@@ -581,7 +581,7 @@ pub fn retain<F>(&mut self, mut f: F) where F: FnMut(&T) -> bool {
/// # Examples
///
/// ```
/// let mut vec = vec!(1, 2);
/// let mut vec = vec![1, 2];
/// vec.push(3);
/// assert_eq!(vec, [1, 2, 3]);
/// ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册