Skip to content

Improve sizeCompare doc#25696

Merged
som-snytt merged 1 commit intoscala:mainfrom
som-snytt:issue/2-11783-sizeCompare-doc
Apr 2, 2026
Merged

Improve sizeCompare doc#25696
som-snytt merged 1 commit intoscala:mainfrom
som-snytt:issue/2-11783-sizeCompare-doc

Conversation

@som-snytt
Copy link
Copy Markdown
Contributor

Fixes scala/bug#11783

Not sure that collection implementers are confused, but the extant wording is confusing, per the ticket.

Not sure this attempt to improve the words is not tiresome.

The original uncertainty was: "Does it mean to say cheap or not cheap?"

An alternative fix would simply delete the confusing text. Curious folk may consult the open source code.

@som-snytt som-snytt requested a review from a team as a code owner April 2, 2026 15:56
@som-snytt som-snytt merged commit ecf8e5c into scala:main Apr 2, 2026
64 checks passed
@som-snytt som-snytt deleted the issue/2-11783-sizeCompare-doc branch April 2, 2026 23:04
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.

Misleading description of Iterable.sizeCompare()

3 participants