Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix slice init length #365

Merged
merged 4 commits into from
Sep 27, 2024
Merged

fix: fix slice init length #365

merged 4 commits into from
Sep 27, 2024

Conversation

cuishuang
Copy link
Contributor

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

@brianvoe brianvoe changed the base branch from master to develop September 27, 2024 15:51
@brianvoe
Copy link
Owner

Nice catch. Is this just something you noticed or did you have an xml issue show up and this is the fix?

Thanks again

@brianvoe brianvoe merged commit 6e8d20a into brianvoe:develop Sep 27, 2024
3 checks passed
@cuishuang
Copy link
Contributor Author

Nice catch. Is this just something you noticed or did you have an xml issue show up and this is the fix?

Thanks again

Thank you, I actually used your library in the project.

By analyzing the code, I seem to think this is a problem

@brianvoe
Copy link
Owner

ok interesting

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.

2 participants