From: Ian Lance Taylor Date: Fri, 8 Aug 2025 21:22:11 +0000 (-0700) Subject: internal/sync: rename Store parameter from old to new X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fbac94a79998d4730a58592f0634fa8a39d8b9fb;p=gostls13.git 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 --- 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.