Skip to content

Commit 007622e

Browse files
committed
update panic reason
1 parent f5f1bcc commit 007622e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/slices.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func Set[T comparable](slice []T) []T {
4646
}
4747

4848
if reflect.TypeOf(slice[0]).Kind() == reflect.Ptr {
49-
panic("Unique does not support pointer types")
49+
panic("Set does not support pointer types")
5050
}
5151

5252
result := make([]T, 0, len(slice))

0 commit comments

Comments
 (0)