I put the NOT in highlight because the pseudo code in the same section is telling me otherwise: it should return null if the value is the expected value.
Expected Behavior
@cmpxchgWeak and @cmpxchgStrong returns null if the value IS the expected value.
Zig Version
master
Steps to Reproduce and Observed Behavior
Hey in the @cmpxchgWeak https://ziglang.org/documentation/master/#cmpxchgWeak docs states: "... returning null if the current value is NOT the given expected value ..."
I put the NOT in highlight because the pseudo code in the same section is telling me otherwise: it should return null if the value is the expected value.
Expected Behavior
@cmpxchgWeak and @cmpxchgStrong returns null if the value IS the expected value.