Skip to content

Conversation

@vetclippy
Copy link

The purpose here should be to initialize a slice with a capacity of len(call.Arguments) and a length of 0, and then append it later. Instead of initializing the length to len(call.Arguments) from the beginning, the resulting slice will not meet expectations.

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