]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/hint.rs
Rollup merge of #82372 - RalfJung:unsafe-cell, r=KodrAus
[rust.git] / library / core / src / hint.rs
index 979a5f8cf507534aaa2ede05bea73df603f4fd3b..313729581acd945b790c2f69aa03512c825766a1 100644 (file)
@@ -91,7 +91,7 @@
 /// };
 ///
 /// // Back on our current thread, we wait for the value to be set
-/// while live.load(Ordering::Acquire) {
+/// while !live.load(Ordering::Acquire) {
 ///     // The spin loop is a hint to the CPU that we're waiting, but probably
 ///     // not for very long
 ///     hint::spin_loop();