Rollup merge of #99264 - eltociear:patch-14, r=compiler-errors

Fix typo in mod.rs

constuct -> construct
This commit is contained in:
Yuki Okushi 2022-07-16 17:53:02 +09:00 committed by GitHub
commit 8a64529763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1114,7 +1114,7 @@ impl Thread {
// Used only internally to construct a thread object without spawning
// Panics if the name contains nuls.
pub(crate) fn new(name: Option<CString>) -> Thread {
// We have to use `unsafe` here to constuct the `Parker` in-place,
// We have to use `unsafe` here to construct the `Parker` in-place,
// which is required for the UNIX implementation.
//
// SAFETY: We pin the Arc immediately after creation, so its address never