Skip to content

Commit 4ed3db2

Browse files
authored
Merge pull request #576 from saschagrunert/build-err-go1.23
Fix build error on go1.23rc1
2 parents b1fc0ec + ff2fd98 commit 4ed3db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎list.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,10 @@ func (s StructList[T]) Set(i int, v T) error {
10811081
// A list of some Cap'n Proto capability type T.
10821082
type CapList[T ~ClientKind] PointerList
10831083

1084-
func (c CapList[T]) At(i int) (T, error) {
1084+
func (c CapList[T]) At(i int) (res T, err error) {
10851085
ptr, err := PointerList(c).At(i)
10861086
if err != nil {
1087-
return T{}, err
1087+
return res, err
10881088
}
10891089
return T(ptr.Interface().Client()), nil
10901090
}

0 commit comments

Comments
 (0)