diff options
author | Zephyr Shannon <earthlingzephyr@gmail.com> | 2020-09-11 12:44:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 12:44:33 -0700 |
commit | ce0af8f7a188c9b8b8b4dcc3847674fd0afbe769 (patch) | |
tree | 0a36b9df4df603dd0cd2c1295260b1ef028d7d0d /tokio/src/sync | |
parent | be7462e50fe21c3eea578e12765f501e1157072b (diff) |
docs: more doc fixes (#2831)
Previous docs look like they were based on the docs for
`insert_at`. Changed names of variables referred to and the
explanation of when the value will be returned and under what
condition it will be immediately available to make sense for a
Duration argument instead of an Instant.
Diffstat (limited to 'tokio/src/sync')
-rw-r--r-- | tokio/src/sync/mod.rs | 2 | ||||
-rw-r--r-- | tokio/src/sync/rwlock.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs index 5d66512d..d5004137 100644 --- a/tokio/src/sync/mod.rs +++ b/tokio/src/sync/mod.rs @@ -406,7 +406,7 @@ //! //! The remaining synchronization primitives focus on synchronizing state. //! These are asynchronous equivalents to versions provided by `std`. They -//! operate in a similar way as their `std` counterparts parts but will wait +//! operate in a similar way as their `std` counterparts but will wait //! asynchronously instead of blocking the thread. //! //! * [`Barrier`](Barrier) Ensures multiple tasks will wait for each other to diff --git a/tokio/src/sync/rwlock.rs b/tokio/src/sync/rwlock.rs index 1bb57931..373ab109 100644 --- a/tokio/src/sync/rwlock.rs +++ b/tokio/src/sync/rwlock.rs @@ -11,7 +11,7 @@ const MAX_READS: usize = 32; #[cfg(loom)] const MAX_READS: usize = 10; -/// An asynchronous reader-writer lock +/// An asynchronous reader-writer lock. /// /// This type of lock allows a number of readers or at most one writer at any /// point in time. The write portion of this lock typically allows modification |