Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit c140b0f

Browse files
authored
Merge pull request #26 from hinshun/pin-rm-docs
Update Pin.RmRecursive docs to clarify shared indirect pins are not removed
2 parents 9ebc112 + c908a05 commit c140b0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

options/pin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ func (pinOpts) Recursive(recursive bool) PinAddOption {
127127
}
128128
}
129129

130-
// RmRecursive is an option for Pin.Rm
130+
// RmRecursive is an option for Pin.Rm which specifies whether to recursively
131+
// unpin the object linked to by the specified object(s). This does not remove
132+
// indirect pins referenced by other recursive pins.
131133
func (pinOpts) RmRecursive(recursive bool) PinRmOption {
132134
return func(settings *PinRmSettings) error {
133135
settings.Recursive = recursive

0 commit comments

Comments
 (0)