Skip to content

fix: fix slice init length#12

Open
wangjingcun wants to merge 1 commit intocoming-chat:mainfrom
wangjingcun:main
Open

fix: fix slice init length#12
wangjingcun wants to merge 1 commit intocoming-chat:mainfrom
wangjingcun:main

Conversation

@wangjingcun
Copy link

The intention here should be to initialize a slice with a capacity of len(funcABI.GenericTypeParams) rather than initializing the length of this slice.

The online demo: https://go.dev/play/p/q1BcVCmvidW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant