sync: fix docs typo (#6030)

This commit is contained in:
Rebekah Kim 2023-09-23 03:33:41 -07:00 committed by GitHub
parent 74c7a87985
commit aa36807c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ use std::{fmt, mem, ptr};
/// threads.
/// 2. Each spawned task obtains a lock and releases it on every iteration.
/// 3. Mutation of the data protected by the Mutex is done by de-referencing
/// the obtained lock as seen on lines 12 and 19.
/// the obtained lock as seen on lines 13 and 20.
///
/// Tokio's Mutex works in a simple FIFO (first in, first out) style where all
/// calls to [`lock`] complete in the order they were performed. In that way the