Skip to content

Commit 86478b2

Browse files
committed
minor #10909 Fix typos and improve wording for the Lock component documentation (alexandrunastase)
This PR was merged into the 3.4 branch. Discussion ---------- Fix typos and improve wording for the Lock component documentation - Fix some typos - Add some wording improvements Commits ------- 6269bf3 Fix typos and improve wording for the Lock component documentation
2 parents 7b3a625 + 6269bf3 commit 86478b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/lock.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ with the ``release()`` method.
110110

111111
The trickiest part when working with expiring locks is choosing the right TTL.
112112
If it's too short, other processes could acquire the lock before finishing the
113-
job; it it's too long and the process crashes before calling the ``release()``
113+
job; if it's too long and the process crashes before calling the ``release()``
114114
method, the resource will stay locked until the timeout::
115115

116116
// ...
@@ -375,8 +375,8 @@ Some file systems (such as some types of NFS) do not support locking.
375375
always be locked on the same machine or to use a well configured shared file
376376
system.
377377

378-
Files on file system can be removed during a maintenance operation. For instance
379-
to cleanup the ``/tmp`` directory or after a reboot of the machine when directory
378+
Files on file the system can be removed during a maintenance operation. For instance,
379+
to clean up the ``/tmp`` directory or after a reboot of the machine when a directory
380380
uses tmpfs. It's not an issue if the lock is released when the process ended, but
381381
it is in case of ``Lock`` reused between requests.
382382

@@ -405,7 +405,7 @@ needs space to add new items.
405405

406406
.. caution::
407407

408-
Number of items stored in the Memcached must be under control. If it's not
408+
The number of items stored in Memcached must be under control. If it's not
409409
possible, LRU should be disabled and Lock should be stored in a dedicated
410410
Memcached service away from Cache.
411411

0 commit comments

Comments
 (0)