Skip to content

Commit d23af85

Browse files
authored
Update allocator.go
1 parent 2b1f4c1 commit d23af85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/allocator/allocator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ func (p *Pool[T]) Get() *T {
11111111

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

11171117
return val

0 commit comments

Comments
 (0)