aboutsummaryrefslogtreecommitdiff
path: root/ref/store/chain/new.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 17:06:28 +0000
committerGravatar Runxi Yu2026-03-28 17:06:28 +0000
commitb95d27a5e7c673a49e4bc033c678523f3dd27606 (patch)
treef2374caa175fae35f045866a1c2333c9af6c6639 /ref/store/chain/new.go
parentref/store: Clarify contract (diff)
signatureNo signature
ref/store/chain: Update docs
Diffstat (limited to 'ref/store/chain/new.go')
-rw-r--r--ref/store/chain/new.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ref/store/chain/new.go b/ref/store/chain/new.go
index f4b8ef6e..a830d06c 100644
--- a/ref/store/chain/new.go
+++ b/ref/store/chain/new.go
@@ -5,7 +5,8 @@ import refstore "codeberg.org/lindenii/furgit/ref/store"
// New creates an ordered reference store chain.
//
// The provided backends must be non-nil and distinct.
-// Chain borrows the provided backends and does not close them in Close.
+//
+// Labels: Deps-Borrowed.
func New(backends ...refstore.ReadingStore) *Chain {
return &Chain{
backends: append([]refstore.ReadingStore(nil), backends...),