Skip to content

Commit 56ba76a

Browse files
authored
Rollup merge of rust-lang#80656 - booleancoercion:master, r=sfackler
Fixed documentation error for `std::hint::spin_loop` Fixes rust-lang#80644.
2 parents 7c61ed4 + 979833a commit 56ba76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
9191
/// };
9292
///
9393
/// // Back on our current thread, we wait for the value to be set
94-
/// while live.load(Ordering::Acquire) {
94+
/// while !live.load(Ordering::Acquire) {
9595
/// // The spin loop is a hint to the CPU that we're waiting, but probably
9696
/// // not for very long
9797
/// hint::spin_loop();

0 commit comments

Comments
 (0)