Skip to content

Commit e2e4fda

Browse files
committed
correct typos
1 parent bf6ad4f commit e2e4fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/pal/unix/stack_overflow/thread_info.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Drop for UnlockOnDrop {
5151
}
5252
}
5353

54-
/// Get the current thread's infoformation, if available.
54+
/// Get the current thread's information, if available.
5555
///
5656
/// Calling this function might freeze other threads if they attempt to modify
5757
/// their thread information. Thus, the caller should ensure that the process
@@ -113,7 +113,7 @@ pub fn set_current_info(guard_page_range: Range<usize>, thread_name: Option<Box<
113113
let _lock_guard = LOCK.lock();
114114
let _spin_guard = spin_lock_in_setup(this);
115115

116-
// SAFETY: we own the spin lock, so `THREAD_INFO` cannot not be aliased.
116+
// SAFETY: we own the spin lock, so `THREAD_INFO` cannot be aliased.
117117
let thread_info = unsafe { &mut *(&raw mut THREAD_INFO) };
118118
thread_info.insert(this, ThreadInfo { guard_page_range, thread_name });
119119
}

0 commit comments

Comments
 (0)