types/views: rename Generic to Unwrap

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/4206/head
Maisem Ali 3 years ago committed by Maisem Ali
parent 1e12a29806
commit bd073b8dd6

@ -84,8 +84,8 @@ func (v IPPrefixSlice) AppendTo(dst []netaddr.IPPrefix) []netaddr.IPPrefix {
return v.ж.AppendTo(dst)
}
// Generic returns the underlying Slice[netaddr.IPPrefix].
func (v IPPrefixSlice) Generic() Slice[netaddr.IPPrefix] {
// Unwrap returns the underlying Slice[netaddr.IPPrefix].
func (v IPPrefixSlice) Unwrap() Slice[netaddr.IPPrefix] {
return v.ж
}

Loading…
Cancel
Save