Skip to content

Commit cbdc241

Browse files
authored
Rollup merge of #80656 - booleancoercion:master, r=sfackler
Fixed documentation error for `std::hint::spin_loop` Fixes #80644.
2 parents 598d189 + 514b0ce commit cbdc241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/hint.rs

+1-1
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)