Skip to content

Commit

Permalink
update panic reason
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Jan 23, 2025
1 parent f5f1bcc commit 007622e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/slices.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Set[T comparable](slice []T) []T {
}

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

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

0 comments on commit 007622e

Please sign in to comment.