aboutsummaryrefslogtreecommitdiff
path: root/absl/container/internal/raw_hash_set.h
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2023-04-25 13:58:06 -0700
committerCopybara-Service <copybara-worker@google.com>2023-04-25 13:58:06 -0700
commit8518869eb9a8ef098a9dd7780b9e55d5b43b5873 (patch)
treed102fdc769f74ec29208285ab3f509230eaa50e4 /absl/container/internal/raw_hash_set.h
parent4ffaea74c1f5408e0757547a1ca0518ad43fa9f1 (diff)
parent421a74dce4c6f768bfcca94ba62b65ded1d50f7c (diff)
downloadabseil-8518869eb9a8ef098a9dd7780b9e55d5b43b5873.tar.gz
abseil-8518869eb9a8ef098a9dd7780b9e55d5b43b5873.tar.bz2
abseil-8518869eb9a8ef098a9dd7780b9e55d5b43b5873.zip
Merge pull request #1434 from Vertexwahn:fix-spelling
PiperOrigin-RevId: 527066823 Change-Id: Ifa1e9a43c7490b34f9f4dbfa12d3acbed6b49777
Diffstat (limited to 'absl/container/internal/raw_hash_set.h')
-rw-r--r--absl/container/internal/raw_hash_set.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index f487e4d5..93d3680e 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -115,7 +115,7 @@
// starting with that index and extract potential candidates: occupied slots
// with a control byte equal to `H2(hash(x))`. If we find an empty slot in the
// group, we stop and return an error. Each candidate slot `y` is compared with
-// `x`; if `x == y`, we are done and return `&y`; otherwise we contine to the
+// `x`; if `x == y`, we are done and return `&y`; otherwise we continue to the
// next probe index. Tombstones effectively behave like full slots that never
// match the value we're looking for.
//
@@ -2456,8 +2456,8 @@ class raw_hash_set {
void rehash_and_grow_if_necessary() {
const size_t cap = capacity();
if (cap > Group::kWidth &&
- // Do these calcuations in 64-bit to avoid overflow.
- size() * uint64_t{32} <= cap* uint64_t{25}) {
+ // Do these calculations in 64-bit to avoid overflow.
+ size() * uint64_t{32} <= cap * uint64_t{25}) {
// Squash DELETED without growing if there is enough capacity.
//
// Rehash in place if the current size is <= 25/32 of capacity.