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

Avoid custom diffing for nil slices #201

Merged
merged 1 commit into from
May 17, 2020
Merged

Conversation

at-ishikawa
Copy link
Contributor

@at-ishikawa at-ishikawa commented May 16, 2020

Proposal to fix #157

I'm not sure what the best format for these cases are, so just stop using custom format for slices as a proposal.
See cmp/testdata/diffs for the example diff for nil cases.

@dsnet
Copy link
Collaborator

dsnet commented May 17, 2020

Thanks! Falling back on the typical diffing behavior seems reasonable.

@dsnet dsnet changed the title Do not use custom format for nil slice Avoid custom diffing for nil slices May 17, 2020
@dsnet dsnet merged commit aa7c82a into google:master May 17, 2020
@at-ishikawa at-ishikawa deleted the issue-157 branch May 17, 2020 05:45
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.

Unexpected diffs of nil slices
2 participants