From 66e4b3447110bb06930f4a606e5a47c55ca73a8a Mon Sep 17 00:00:00 2001 From: Arno Haase Date: Tue, 10 Sep 2019 14:04:52 +0200 Subject: [PATCH] typo fix --- src/libcore/hint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs index 9a581d90cc2..861ad6b5420 100644 --- a/src/libcore/hint.rs +++ b/src/libcore/hint.rs @@ -64,7 +64,7 @@ pub unsafe fn unreachable_unchecked() -> ! { /// scheduler, no overhead for switching threads occurs. However, if the thread holding the /// contended lock is running on the same CPU or core, the spin-loop is likely to occupy an entire CPU slice /// before switching to the thread that holds the lock. If the contending lock is held by a thread -/// on the same CPU or thread or if the waiting times for acquiring the lock are longer, it is often better to +/// on the same CPU or core or if the waiting times for acquiring the lock are longer, it is often better to /// use [`std::thread::yield_now`]. /// /// **Note**: On platforms that do not support receiving spin-loop hints this function does not