Skip to content
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

Fix documentation for @cmpxchg* functions. #22306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IntegratedQuantum
Copy link
Contributor

The text was incorrectly saying that it returns null in the failure path, if expected != current, but according to the example code below and my intuition it only returns null when the comparison succeeds.

I also decided to simplify the sentence a bit, since the previous sentence structure didn't do a good job at conveying the important piece of information.

The text was incorrectly saying that it returns null in the failure path.
@Rexicon226
Copy link
Contributor

btw duplicate of #21755 and #20411

@IntegratedQuantum
Copy link
Contributor Author

Oops, my bad, I should have searched for it. (I expected that such a small fix would have been merged within days, not 5 months)

Well, now that it is here, I will leave this PR open as a reminder to the maintainers to please merge a fix for this issue before more people stumble over this. With now 3 options to choose from, there should be no reason to delay this any further.

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.

2 participants