From fbac94a79998d4730a58592f0634fa8a39d8b9fb Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 8 Aug 2025 14:22:11 -0700 Subject: [PATCH] internal/sync: rename Store parameter from old to new It's not an old value, it's a new value. Change-Id: I135ecd8815fac9c3d34ca35afa2b62e74fa76cb6 Reviewed-on: https://go-review.googlesource.com/c/go/+/694436 Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Michael Knyszek --- src/internal/sync/hashtriemap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/sync/hashtriemap.go b/src/internal/sync/hashtriemap.go index 6f5e0b437f..dbf4c3473e 100644 --- a/src/internal/sync/hashtriemap.go +++ b/src/internal/sync/hashtriemap.go @@ -196,8 +196,8 @@ func (ht *HashTrieMap[K, V]) expand(oldEntry, newEntry *entry[K, V], newHash uin } // Store sets the value for a key. -func (ht *HashTrieMap[K, V]) Store(key K, old V) { - _, _ = ht.Swap(key, old) +func (ht *HashTrieMap[K, V]) Store(key K, new V) { + _, _ = ht.Swap(key, new) } // Swap swaps the value for a key and returns the previous value if any. -- 2.51.0