Skip to content

Commit

Permalink
fix: use correct function name (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored Aug 19, 2024
1 parent ad61ccf commit de2babb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gengapic/paging.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func internalPageSizeSetter(p func(s string, a ...interface{}), pageSize *descri
}
case descriptorpb.FieldDescriptorProto_TYPE_UINT32:
if pageSize.GetProto3Optional() {
p("req.%s = proto.UInt32(uint32(%s))", cName, setVal)
p("req.%s = proto.Uint32(uint32(%s))", cName, setVal)
} else {
p("req.%s = uint32(%s)", cName, setVal)
}
Expand Down

0 comments on commit de2babb

Please sign in to comment.