diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-02-20 12:42:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-20 12:42:54 -0500 |
| commit | 7ef0192532dbaedd2496de89ae9ef37f4db65a06 (patch) | |
| tree | adacc36e64e598f2d4c1854221c26bf0acc4cf77 /src/libstd | |
| parent | 8918ceb67aeb2e8d319e8481ad51f56dd8550f87 (diff) | |
| parent | 3b4412aa62e25c7e4952211a7844012a67792b27 (diff) | |
| download | rust-7ef0192532dbaedd2496de89ae9ef37f4db65a06.tar.gz rust-7ef0192532dbaedd2496de89ae9ef37f4db65a06.zip | |
Rollup merge of #39937 - arthurprs:hm-adapt, r=frewsxcv
Fix spelling in hashmap comments Fixing my bad english from #38368 Note to self: triple check spelling/grammar
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 079dbd667d6..fd5827b4c07 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -182,15 +182,15 @@ impl DefaultResizePolicy { // ---------------------- // To protect against degenerate performance scenarios (including DOS attacks), // the implementation includes an adaptive behavior that can resize the map -// early (before it's capacity is exceeded) when suspiciously long probe or -// foward shifts sequences are encounted. +// early (before its capacity is exceeded) when suspiciously long probe or +// forward shifts sequences are encountered. // // With this algorithm in place it would be possible to turn a CPU attack into -// a memory attack due to the agressive resizing. To prevent that the +// a memory attack due to the aggressive resizing. To prevent that the // adaptive behavior only triggers when the map occupancy is half the maximum occupancy. -// This reduces the effectivenes of the algorithm but also makes it completelly safe. +// This reduces the effectiveness of the algorithm but also makes it completely safe. // -// The previous safety measure that also prevents degenerate iteractions with +// The previous safety measure also prevents degenerate interactions with // really bad quality hash algorithms that can make normal inputs look like a // DOS attack. // |
