Skip to content

fix: fix slice init length#591

Open
cuishuang wants to merge 1 commit intoaws:mainlinefrom
cuishuang:mainline
Open

fix: fix slice init length#591
cuishuang wants to merge 1 commit intoaws:mainlinefrom
cuishuang:mainline

Conversation

@cuishuang
Copy link

Issue #, if available:

Description of changes:

The intention here should be to initialize a slice with a capacity of length rather than initializing the length of this slice.

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

@cuishuang
Copy link
Author

@martinrehfeld @phils @wjbuys Hi, could you please review this PR? Thank you!

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

Comments