@@ -587,7 +587,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
587587//
588588// > Why a load factor of 90%?
589589//
590- // In general, all the distances to inital buckets will converge on the mean.
590+ // In general, all the distances to initial buckets will converge on the mean.
591591// At a load factor of α, the odds of finding the target bucket after k
592592// probes is approximately 1-α^k. If we set this equal to 50% (since we converge
593593// on the mean) and set k=8 (64-byte cache line / 8-byte hash), α=0.92. I round
@@ -600,7 +600,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
600600// > Wait, what? Where did you get 1-α^k from?
601601//
602602// On the first probe, your odds of a collision with an existing element is α.
603- // The odds of doing this twice in a row is approximatelly α^2. For three times,
603+ // The odds of doing this twice in a row is approximately α^2. For three times,
604604// α^3, etc. Therefore, the odds of colliding k times is α^k. The odds of NOT
605605// colliding after k tries is 1-α^k.
606606//
@@ -681,7 +681,7 @@ static INITIAL_LOAD_FACTOR: Fraction = (9, 10);
681681/// let mut book_reviews = HashMap::new();
682682///
683683/// // review some books.
684- /// book_reviews.insert("Adventures of Hucklebury Fin", "My favorite book.");
684+ /// book_reviews.insert("Adventures of Huckleberry Finn", "My favorite book.");
685685/// book_reviews.insert("Grimms' Fairy Tales", "Masterpiece.");
686686/// book_reviews.insert("Pride and Prejudice", "Very enjoyable.");
687687/// book_reviews.insert("The Adventures of Sherlock Holmes", "Eye lyked it alot.");
@@ -771,7 +771,7 @@ impl<K: TotalEq + Hash<S>, V, S, H: Hasher<S>> HashMap<K, V, H> {
771771 /// from its 'ideal' location.
772772 ///
773773 /// In the cited blog posts above, this is called the "distance to
774- /// inital bucket", or DIB.
774+ /// initial bucket", or DIB.
775775 fn bucket_distance ( & self , index_of_elem : & table:: FullIndex ) -> uint {
776776 // where the hash of the element that happens to reside at
777777 // `index_of_elem` tried to place itself first.
0 commit comments