Update library/std/src/sync/mutex.rs

Co-authored-by: Weiyi Wang <wwylele@gmail.com>
This commit is contained in:
Dylan DPC 2022-06-07 15:15:19 +02:00 committed by GitHub
parent 83af085c77
commit e224185409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
/// A mutual exclusion primitive useful for protecting shared data
///
/// This mutex will block threads waiting for the lock to become available. The
/// mutex can created via a [`new`] constructor. Each mutex has a type parameter
/// mutex can be created via a [`new`] constructor. Each mutex has a type parameter
/// which represents the data that it is protecting. The data can only be accessed
/// through the RAII guards returned from [`lock`] and [`try_lock`], which
/// guarantees that the data is only ever accessed when the mutex is locked.