Skip to content

Conversation

@oscbyspro
Copy link
Contributor

Adds guard i != j else { return } to *Span/swapAt(_:_:).

Comment: Other containers guard against it.

Context: https://forums.swift.org/t/is-self-move-well-defined/83433

@oscbyspro oscbyspro requested a review from a team as a code owner November 27, 2025 15:34
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