Skip to content

Commit 66e4b34

Browse files
author
Arno Haase
committed
typo fix
1 parent 356b4c8 commit 66e4b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub unsafe fn unreachable_unchecked() -> ! {
6464
/// scheduler, no overhead for switching threads occurs. However, if the thread holding the
6565
/// contended lock is running on the same CPU or core, the spin-loop is likely to occupy an entire CPU slice
6666
/// before switching to the thread that holds the lock. If the contending lock is held by a thread
67-
/// on the same CPU or thread or if the waiting times for acquiring the lock are longer, it is often better to
67+
/// on the same CPU or core or if the waiting times for acquiring the lock are longer, it is often better to
6868
/// use [`std::thread::yield_now`].
6969
///
7070
/// **Note**: On platforms that do not support receiving spin-loop hints this function does not

0 commit comments

Comments
 (0)