@@ -93,10 +93,10 @@ public final class ReadWriteLock {
93
93
}
94
94
95
95
extension ReadWriteLock {
96
- /// Acquire a reader lock for the duration of the given block.
96
+ /// Acquire the reader lock for the duration of the given block.
97
97
///
98
98
/// This convenience method should be preferred to `lock` and `unlock` in
99
- /// most situations, as it ensures that the lock is released regardless
99
+ /// most situations, as it ensures that the lock will be released regardless
100
100
/// of how `body` exits.
101
101
///
102
102
/// - Parameter body: The block to execute while holding the lock.
@@ -110,10 +110,10 @@ extension ReadWriteLock {
110
110
return try body ( )
111
111
}
112
112
113
- /// Acquire a writer lock for the duration of the given block.
113
+ /// Acquire the writer lock for the duration of the given block.
114
114
///
115
115
/// This convenience method should be preferred to `lock` and `unlock` in
116
- /// most situations, as it ensures that the lock is released regardless
116
+ /// most situations, as it ensures that the lock will be released regardless
117
117
/// of how `body` exits.
118
118
///
119
119
/// - Parameter body: The block to execute while holding the lock.
@@ -128,7 +128,7 @@ extension ReadWriteLock {
128
128
}
129
129
}
130
130
131
- /// A wrapper that provides locked access to a value.
131
+ /// A wrapper providing locked access to a value.
132
132
///
133
133
/// Marked as @unchecked Sendable due to the synchronization being
134
134
/// performed manually using locks.
0 commit comments