From ce0af8f7a188c9b8b8b4dcc3847674fd0afbe769 Mon Sep 17 00:00:00 2001 From: Zephyr Shannon Date: Fri, 11 Sep 2020 12:44:33 -0700 Subject: 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. --- tokio/src/sync/rwlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tokio/src/sync/rwlock.rs') 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 -- cgit v1.2.3