We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vec!
1 parent f74f058 commit 4291774Copy full SHA for 4291774
src/std/hash/hashset.md
@@ -36,8 +36,8 @@ Try all of these in the following example:
36
use std::collections::HashSet;
37
38
fn main() {
39
- let mut a: HashSet<i32> = vec!(1i32, 2, 3).into_iter().collect();
40
- let mut b: HashSet<i32> = vec!(2i32, 3, 4).into_iter().collect();
+ let mut a: HashSet<i32> = vec![1i32, 2, 3].into_iter().collect();
+ let mut b: HashSet<i32> = vec![2i32, 3, 4].into_iter().collect();
41
42
assert!(a.insert(4));
43
assert!(a.contains(&4));
0 commit comments