Skip to content

Commit

Permalink
chore: Fix usage pool comment (caddyserver#5916)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeidiDeng authored Oct 26, 2023
1 parent d949caf commit f71d779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (up *UsagePool) LoadOrNew(key any, construct Constructor) (value any, loade
// LoadOrStore loads the value associated with key from the pool if it
// already exists, or stores it if it does not exist. It returns the
// value that was either loaded or stored, and true if the value already
// existed and was
// existed and was loaded, false if the value didn't exist and was stored.
func (up *UsagePool) LoadOrStore(key, val any) (value any, loaded bool) {
var upv *usagePoolVal
up.Lock()
Expand Down

0 comments on commit f71d779

Please sign in to comment.