about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbool <booleancoercion@gmail.com>2021-01-03 19:54:54 +0200
committerbool <booleancoercion@gmail.com>2021-01-03 19:54:54 +0200
commit514b0ce9d2a3ff4f527c9e542ff09f8b95216439 (patch)
tree232690f3b0aec3c07202f9c0ad382a04295b5710
parentbcd69750794b315d7c673351f86cacdf5232a0b7 (diff)
downloadrust-514b0ce9d2a3ff4f527c9e542ff09f8b95216439.tar.gz
rust-514b0ce9d2a3ff4f527c9e542ff09f8b95216439.zip
Fixed documentation error
-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();