MCPcopy Create free account
hub / github.com/Debian/dcs / clear

Method clear

internal/index/regexp.go:846–848  ·  view source on GitHub ↗

clear empties the set but preserves the storage.

()

Source from the content-addressed store, hash-verified

844
845// clear empties the set but preserves the storage.
846func (s *stringSet) clear() {
847 *s = (*s)[:0]
848}
849
850// copy returns a copy of the set that does not share storage with the original.
851func (s stringSet) copy() stringSet {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected