Skip to content

Returning empty IEnumerable should include skipping the same number of elements source has, not just less than it. #11155

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

Open
afpirimoglu opened this issue Mar 31, 2025 · 1 comment
Labels
area-System.Linq untriaged New issue has not been triaged by the area owner

Comments

@afpirimoglu
Copy link

Type of issue

Typo

Description

"If source contains fewer than count elements, an empty IEnumerable is returned." should be changed to "If source contains fewer than or equal to count elements, an empty IEnumerable is returned". Because if source had count number of elements and count of them are skipped, the remaining is empty IEnumerable.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.skip?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Linq/Enumerable.xml

Document Version Independent Id

a67e52ea-8921-5d7f-d316-eecab80668af

Platform Id

7e01664c-988a-740a-0cea-13ed236ce98b

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 31, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-linq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Linq untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant