summaryrefslogtreecommitdiffhomepage
path: root/usagepool.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2023-10-26 11:05:20 +0800
committerGitHub <[email protected]>2023-10-25 23:05:20 -0400
commitf71d7790090d0de8decda6db4ebbf758a5f1d639 (patch)
tree8ac08c10de4890df907e891b2cbb6ec8d76b019d /usagepool.go
parentd949caf459c3e046e6f4020dbb685c07812d5b80 (diff)
downloadcaddy-f71d7790090d0de8decda6db4ebbf758a5f1d639.tar.gz
caddy-f71d7790090d0de8decda6db4ebbf758a5f1d639.zip
chore: Fix usage pool comment (#5916)
Diffstat (limited to 'usagepool.go')
-rw-r--r--usagepool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usagepool.go b/usagepool.go
index 7007849fb..e011be961 100644
--- a/usagepool.go
+++ b/usagepool.go
@@ -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()