From 514b0ce9d2a3ff4f527c9e542ff09f8b95216439 Mon Sep 17 00:00:00 2001 From: bool Date: Sun, 3 Jan 2021 19:54:54 +0200 Subject: [PATCH] Fixed documentation error --- library/core/src/hint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ /// }; /// /// // 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();