Skip to content

Conversation

zlasd
Copy link

@zlasd zlasd commented Aug 27, 2023

When the initial value is a pre-allocated slice, it should not be considered as a candidate for suggestion. So we try to recognize the make function and skip when the returned slice has a non-zero capacity.

Fix #25

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.

Avoid false positive when slices are pre-allocated

1 participant