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-
111use core:: borrow:: Borrow ;
122use core:: fmt;
133use core:: hash:: { BuildHasher , Hash } ;
@@ -197,7 +187,7 @@ where
197187 }
198188 }
199189
200- /// Creates an empty `HashSet` with with the specified capacity, using
190+ /// Creates an empty `HashSet` with the specified capacity, using
201191 /// `hasher` to hash the keys.
202192 ///
203193 /// The hash set will be able to hold at least `capacity` elements without
@@ -371,7 +361,7 @@ where
371361 }
372362
373363 /// 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`.
375365 ///
376366 /// # Examples
377367 ///
@@ -402,7 +392,7 @@ where
402392 }
403393
404394 /// 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.
406396 ///
407397 /// # Examples
408398 ///
@@ -433,7 +423,7 @@ where
433423 }
434424
435425 /// 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`.
437427 ///
438428 /// # Examples
439429 ///
@@ -459,7 +449,7 @@ where
459449 }
460450
461451 /// 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.
463453 ///
464454 /// # Examples
465455 ///
@@ -634,7 +624,7 @@ where
634624 }
635625
636626 /// 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`.
638628 ///
639629 /// # Examples
640630 ///
@@ -655,7 +645,7 @@ where
655645 }
656646
657647 /// 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`.
659649 ///
660650 /// # Examples
661651 ///
0 commit comments