1
- // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
- // file at the top-level directory of this distribution and at
3
- // http://rust-lang.org/COPYRIGHT.
4
- //
5
- // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
- // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
- // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
- // option. This file may not be copied, modified, or distributed
9
- // except according to those terms.
10
-
11
1
use core:: borrow:: Borrow ;
12
2
use core:: fmt;
13
3
use core:: hash:: { BuildHasher , Hash } ;
@@ -197,7 +187,7 @@ where
197
187
}
198
188
}
199
189
200
- /// Creates an empty `HashSet` with with the specified capacity, using
190
+ /// Creates an empty `HashSet` with the specified capacity, using
201
191
/// `hasher` to hash the keys.
202
192
///
203
193
/// The hash set will be able to hold at least `capacity` elements without
@@ -371,7 +361,7 @@ where
371
361
}
372
362
373
363
/// Visits the values representing the difference,
374
- /// i.e. the values that are in `self` but not in `other`.
364
+ /// i.e., the values that are in `self` but not in `other`.
375
365
///
376
366
/// # Examples
377
367
///
@@ -402,7 +392,7 @@ where
402
392
}
403
393
404
394
/// Visits the values representing the symmetric difference,
405
- /// i.e. the values that are in `self` or in `other` but not in both.
395
+ /// i.e., the values that are in `self` or in `other` but not in both.
406
396
///
407
397
/// # Examples
408
398
///
@@ -433,7 +423,7 @@ where
433
423
}
434
424
435
425
/// Visits the values representing the intersection,
436
- /// i.e. the values that are both in `self` and `other`.
426
+ /// i.e., the values that are both in `self` and `other`.
437
427
///
438
428
/// # Examples
439
429
///
@@ -459,7 +449,7 @@ where
459
449
}
460
450
461
451
/// Visits the values representing the union,
462
- /// i.e. all the values in `self` or `other`, without duplicates.
452
+ /// i.e., all the values in `self` or `other`, without duplicates.
463
453
///
464
454
/// # Examples
465
455
///
@@ -634,7 +624,7 @@ where
634
624
}
635
625
636
626
/// Returns `true` if the set is a subset of another,
637
- /// i.e. `other` contains at least all the values in `self`.
627
+ /// i.e., `other` contains at least all the values in `self`.
638
628
///
639
629
/// # Examples
640
630
///
@@ -655,7 +645,7 @@ where
655
645
}
656
646
657
647
/// Returns `true` if the set is a superset of another,
658
- /// i.e. `self` contains at least all the values in `other`.
648
+ /// i.e., `self` contains at least all the values in `other`.
659
649
///
660
650
/// # Examples
661
651
///
0 commit comments