@@ -605,7 +605,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
605605//
606606// > Why a load factor of 90%?
607607//
608- // In general, all the distances to inital buckets will converge on the mean.
608+ // In general, all the distances to initial buckets will converge on the mean.
609609// At a load factor of α, the odds of finding the target bucket after k
610610// probes is approximately 1-α^k. If we set this equal to 50% (since we converge
611611// on the mean) and set k=8 (64-byte cache line / 8-byte hash), α=0.92. I round
@@ -618,7 +618,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
618618// > Wait, what? Where did you get 1-α^k from?
619619//
620620// On the first probe, your odds of a collision with an existing element is α.
621- // The odds of doing this twice in a row is approximatelly α^2. For three times,
621+ // The odds of doing this twice in a row is approximately α^2. For three times,
622622// α^3, etc. Therefore, the odds of colliding k times is α^k. The odds of NOT
623623// colliding after k tries is 1-α^k.
624624//
@@ -692,7 +692,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
692692/// let mut book_reviews = HashMap::new();
693693///
694694/// // review some books.
695- /// book_reviews.insert("Adventures of Hucklebury Fin", "My favorite book.");
695+ /// book_reviews.insert("Adventures of Huckleberry Finn", "My favorite book.");
696696/// book_reviews.insert("Grimms' Fairy Tales", "Masterpiece.");
697697/// book_reviews.insert("Pride and Prejudice", "Very enjoyable.");
698698/// book_reviews.insert("The Adventures of Sherlock Holmes", "Eye lyked it alot.");
@@ -782,7 +782,7 @@ impl<K: TotalEq + Hash<S>, V, S, H: Hasher<S>> HashMap<K, V, H> {
782782 /// from its 'ideal' location.
783783 ///
784784 /// In the cited blog posts above, this is called the "distance to
785- /// inital bucket", or DIB.
785+ /// initial bucket", or DIB.
786786 fn bucket_distance ( & self , index_of_elem : & table:: FullIndex ) -> uint {
787787 // where the hash of the element that happens to reside at
788788 // `index_of_elem` tried to place itself first.
0 commit comments