mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-04 20:09:03 +00:00
util/set: make Clone a method (#10044)
Updates #cleanup Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
This commit is contained in:
@@ -19,7 +19,7 @@ func SetOf[T comparable](slice []T) Set[T] {
|
||||
}
|
||||
|
||||
// Clone returns a new set cloned from the elements in s.
|
||||
func Clone[T comparable](s Set[T]) Set[T] {
|
||||
func (s Set[T]) Clone() Set[T] {
|
||||
return maps.Clone(s)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user