mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Fix typo in mod.rs
constuct -> construct
This commit is contained in:
parent
30243dd87e
commit
67a6c0a7ee
@ -1114,7 +1114,7 @@ impl Thread {
|
|||||||
// Used only internally to construct a thread object without spawning
|
// Used only internally to construct a thread object without spawning
|
||||||
// Panics if the name contains nuls.
|
// Panics if the name contains nuls.
|
||||||
pub(crate) fn new(name: Option<CString>) -> Thread {
|
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.
|
// which is required for the UNIX implementation.
|
||||||
//
|
//
|
||||||
// SAFETY: We pin the Arc immediately after creation, so its address never
|
// SAFETY: We pin the Arc immediately after creation, so its address never
|
||||||
|
Loading…
Reference in New Issue
Block a user