summaryrefslogtreecommitdiff
path: root/absl/container/internal/raw_hash_set_benchmark.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-06-29 10:48:43 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-06-29 10:49:39 -0700
commit9402bd32fbb24f762f7923ece6afe131a5b57f35 (patch)
tree29ad5e47dd0b3d8c8687198dc6c42a585a5cc3bb /absl/container/internal/raw_hash_set_benchmark.cc
parent53fbcb883dc8ca208dc58a8cc168d0628fe2556f (diff)
Fix typo
PiperOrigin-RevId: 544401753 Change-Id: Ie5bb48bb46c8c1bf41ef902242cefefd739e7c37
Diffstat (limited to 'absl/container/internal/raw_hash_set_benchmark.cc')
-rw-r--r--absl/container/internal/raw_hash_set_benchmark.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set_benchmark.cc b/absl/container/internal/raw_hash_set_benchmark.cc
index f77f2a7b..a3647890 100644
--- a/absl/container/internal/raw_hash_set_benchmark.cc
+++ b/absl/container/internal/raw_hash_set_benchmark.cc
@@ -142,7 +142,7 @@ struct string_generator {
template <class RNG>
std::string operator()(RNG& rng) const {
std::string res;
- res.resize(12);
+ res.resize(size);
std::uniform_int_distribution<uint32_t> printable_ascii(0x20, 0x7E);
std::generate(res.begin(), res.end(), [&] { return printable_ascii(rng); });
return res;