Skip to content

fix: changed all leftover reflect.DeepEqual in Array and Slices chapter to slices.Equal#908

Open
mysticshirou wants to merge 1 commit into
quii:mainfrom
mysticshirou:fix/remove-reflect-deepequal
Open

fix: changed all leftover reflect.DeepEqual in Array and Slices chapter to slices.Equal#908
mysticshirou wants to merge 1 commit into
quii:mainfrom
mysticshirou:fix/remove-reflect-deepequal

Conversation

@mysticshirou
Copy link
Copy Markdown

@mysticshirou mysticshirou commented Apr 27, 2026

Any tests that use reflect.DeepEqual are changed to use the newer slices.Equal which the updated version of the chapter introduces and uses.

The summary is changed to give a short callout to slices.Equal instead of reflect.DeepEqual.

All changes are made only in arrays-and-slices.md where some usages of the old function were leftover.

Closes #907.

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.

Arrays and slices chapter introduces slices.Equal for equality of slices, but uses reflect.DeepEqual for subsequent tests despite no explanation

1 participant