summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/rwlock.rs
diff options
context:
space:
mode:
authorZephyr Shannon <earthlingzephyr@gmail.com>2020-09-11 12:44:33 -0700
committerGitHub <noreply@github.com>2020-09-11 12:44:33 -0700
commitce0af8f7a188c9b8b8b4dcc3847674fd0afbe769 (patch)
tree0a36b9df4df603dd0cd2c1295260b1ef028d7d0d /tokio/src/sync/rwlock.rs
parentbe7462e50fe21c3eea578e12765f501e1157072b (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/rwlock.rs')
-rw-r--r--tokio/src/sync/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
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