Skip to content

Commit 448d867

Browse files
Apply suggestion to fix grammar
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
1 parent 1d02ae9 commit 448d867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2022-06-30-Rust-1.62.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ As of now only "unit" variants (variants that have no fields) are allowed to be
6565

6666
Previously, `Mutex`, `Condvar`, and `RwLock` were backed by the pthreads library on Linux. The pthreads locks support more features than the Rust APIs themselves do, including runtime configuration, and are designed to be used in languages with fewer static guarantees than Rust provides.
6767

68-
The mutex implementation, for example, is 40 bytes and cannot be moved. This forced us the standard library to allocate a `Box` behind the scenes for each new mutex for platforms that use pthreads.
68+
The mutex implementation, for example, is 40 bytes and cannot be moved. This forced the standard library to allocate a `Box` behind the scenes for each new mutex for platforms that use pthreads.
6969

7070
Rust's standard library now ships with a raw futex-based implementation of these locks on Linux, which is very lightweight and doesn't require extra allocation. In 1.62.0 `Mutex` only needs 5 bytes for its internal state on Linux, though this may change in future versions.
7171

0 commit comments

Comments
 (0)