@@ -348,8 +348,8 @@ impl<T, S> HashSet<T, S>
348
348
/// println!("{}", x);
349
349
/// }
350
350
///
351
- /// let diff : HashSet<_> = a.intersection(&b).cloned().collect();
352
- /// assert_eq!(diff , [2, 3].iter().cloned().collect());
351
+ /// let intersection : HashSet<_> = a.intersection(&b).cloned().collect();
352
+ /// assert_eq!(intersection , [2, 3].iter().cloned().collect());
353
353
/// ```
354
354
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
355
355
pub fn intersection < ' a > ( & ' a self , other : & ' a HashSet < T , S > ) -> Intersection < ' a , T , S > {
@@ -373,8 +373,8 @@ impl<T, S> HashSet<T, S>
373
373
/// println!("{}", x);
374
374
/// }
375
375
///
376
- /// let diff : HashSet<_> = a.union(&b).cloned().collect();
377
- /// assert_eq!(diff , [1, 2, 3, 4].iter().cloned().collect());
376
+ /// let union : HashSet<_> = a.union(&b).cloned().collect();
377
+ /// assert_eq!(union , [1, 2, 3, 4].iter().cloned().collect());
378
378
/// ```
379
379
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
380
380
pub fn union < ' a > ( & ' a self , other : & ' a HashSet < T , S > ) -> Union < ' a , T , S > {
0 commit comments