Skip to content

Commit fbac94a

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 317be4c commit fbac94a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/sync/hashtriemap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ func (ht *HashTrieMap[K, V]) expand(oldEntry, newEntry *entry[K, V], newHash uin
196196
}
197197

198198
// Store sets the value for a key.
199-
func (ht *HashTrieMap[K, V]) Store(key K, old V) {
200-
_, _ = ht.Swap(key, old)
199+
func (ht *HashTrieMap[K, V]) Store(key K, new V) {
200+
_, _ = ht.Swap(key, new)
201201
}
202202

203203
// Swap swaps the value for a key and returns the previous value if any.

0 commit comments

Comments
 (0)