Skip to content

Commit

Permalink
Make docs for Vec::push() use vec! with square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
niconii committed Jul 29, 2015
1 parent 48606e3 commit fe33e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/vec.rs
Expand Up @@ -581,7 +581,7 @@ impl<T> Vec<T> {
/// # Examples
///
/// ```
/// let mut vec = vec!(1, 2);
/// let mut vec = vec![1, 2];
/// vec.push(3);
/// assert_eq!(vec, [1, 2, 3]);
/// ```
Expand Down

0 comments on commit fe33e58

Please sign in to comment.