Skip to content

Commit 1c4f600

Browse files
jderussewouterj
andcommitted
Apply suggestions from code review
Co-Authored-By: Wouter J <[email protected]>
1 parent ebffd48 commit 1c4f600

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lock.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.. index::
22
single: Lock
33

4-
Dealing with concurrency with Lock
4+
Dealing with concurrency with Locks
55
==================================
66

77
When a program runs concurrently, some part of code which modify shared
88
resources should not be accessed by multiple processes at the same time.
9-
Symfony's :doc:`Lock </components/lock>` provides a locking mechanism to ensure
9+
Symfony's :doc:`Lock component </components/lock>` provides a locking mechanism to ensure
1010
that only one process is running the critical section of code at any point of
1111
time to prevent race condition from happening.
1212

@@ -26,7 +26,7 @@ Installation
2626
------------
2727

2828
In applications using :ref:`Symfony Flex <symfony-flex>`, run this command to
29-
install messenger:
29+
install the Lock component:
3030

3131
.. code-block:: terminal
3232
@@ -180,7 +180,7 @@ To lock the default resource, autowire the lock using
180180

181181
.. caution::
182182

183-
The same instance of ``LockInterface`` won't block when calling `acquire``
183+
The same instance of ``LockInterface`` won't block when calling ``acquire``
184184
multiple times. If several services share the same ``lock`` service, they
185185
won't lock each other, use ``LockFactory`` instead.
186186

0 commit comments

Comments
 (0)