about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-05 09:52:45 +0900
committerGitHub <noreply@github.com>2021-01-05 09:52:45 +0900
commitcbdc24174bf510650a6e1ecf67fc79df762df5a0 (patch)
tree3f059b8ab5fbea981e2ef62c6366cfec0ff64325
parent598d189e9bc99be0808b41c9427490a12cdf930d (diff)
parent514b0ce9d2a3ff4f527c9e542ff09f8b95216439 (diff)
downloadrust-cbdc24174bf510650a6e1ecf67fc79df762df5a0.tar.gz
rust-cbdc24174bf510650a6e1ecf67fc79df762df5a0.zip
Rollup merge of #80656 - booleancoercion:master, r=sfackler
Fixed documentation error for `std::hint::spin_loop`

Fixes #80644.
-rw-r--r--library/core/src/hint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs
index 979a5f8cf50..313729581ac 100644
--- a/library/core/src/hint.rs
+++ b/library/core/src/hint.rs
@@ -91,7 +91,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
 /// };
 ///
 /// // 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();