-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency] fix documentation typos in TaskGroup.swift #82291
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
Conversation
Thank you for the fix up |
@swift-ci please smoke test |
Corrects upHeap and downHeap index calculations: - upHeap: parentNdx = (theNdx - 1) / 2 instead of theNdx / 2 - downHeap: leftNdx = 2 * theNdx + 1 instead of 2 * theNdx - downHeap: rightNdx = 2 * theNdx + 2 instead of 2 * theNdx + 1 The previous 1-based indexing formulas caused incorrect heap property maintenance in 0-based arrays, leading to potential heap violations.
Head branch was pushed to by a user without write access
…d arrays" This reverts commit a1e62c7.
@swift-ci please smoke test |
Hi @ktoso The "Swift Test Windows Platform" check is marked as failed with the message:
From what I can see, the build itself completed successfully, but the test results were either not generated or not collected. Is this something I should address on my end, or is it a known issue with the Windows CI setup? Thanks in advance! |
Well have run run the tests again |
@swift-ci please smoke test windows |
Thanks for the contribution :-) |
Summary
This PR fixes small documentation issues in
TaskGroup.swift
:Corrected a grammatical error:
"Awaiting on an empty group immediate returns nil"
→"immediately returns nil"
lines 367
and654
.Fixed a markdown syntax typo:
Motivation
Improves clarity and readability of developer-facing documentation comments. This is a non-functional change that does not affect compilation or behavior.
Affected File
stdlib
/public
/Concurrency
/TaskGroup.swift
Notes
These corrections are minor but contribute to maintaining the quality and polish of the standard library documentation.