Fix typo in mod.rs

constuct -> construct
This commit is contained in:
Ikko Ashimine 2022-07-15 12:57:46 +09:00 committed by GitHub
parent 30243dd87e
commit 67a6c0a7ee
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