Rollup merge of #80656 - booleancoercion:master, r=sfackler

Fixed documentation error for `std::hint::spin_loop`

Fixes #80644.
This commit is contained in:
Yuki Okushi 2021-01-05 09:52:45 +09:00 committed by GitHub
commit cbdc24174b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();