Skip to content

Commit

Permalink
Update allocator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis authored Apr 27, 2024
1 parent 2b1f4c1 commit d23af85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/allocator/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ func (p *Pool[T]) Get() *T {

val, ok := v.(*T)
if !ok {
panic(fmt.Sprintf("assertion failed: expected type *T, got %T", v))
panic(fmt.Sprintf("unsupported type conversion from %T to *T", val))
}

return val
Expand Down

0 comments on commit d23af85

Please sign in to comment.