Skip to content

Fix Bool then-load return value docs#130

Open
fallintoplace wants to merge 1 commit into
apple:mainfrom
fallintoplace:fix-bool-thenload-docs
Open

Fix Bool then-load return value docs#130
fallintoplace wants to merge 1 commit into
apple:mainfrom
fallintoplace:fix-bool-thenload-docs

Conversation

@fallintoplace

Copy link
Copy Markdown

Summary

  • Fix Bool logical*ThenLoad docs to say they return the resulting value, not the original value.
  • Update the .gyb source and regenerate Sources/Atomics/Conformances/autogenerated/AtomicBool.swift.

Why

logicalAndThenLoad, logicalOrThenLoad, and logicalXorThenLoad compute the new value after applying the logical operation and return that value. The existing docs described the return value as the original value, which matches loadThenLogical* but not the *ThenLoad APIs.

Notes

This is documentation-only; the implementations already return the resulting value.

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