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 7736579 commit f800ba6
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")

Check warning on line 49 in utils/slices.go

View check run for this annotation

Codecov / codecov/patch

utils/slices.go#L49

Added line #L49 was not covered by tests
}

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

0 comments on commit f800ba6

Please sign in to comment.