Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 <iant@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
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)

AltStyle によって変換されたページ (->オリジナル) /