Skip to content

Commit 5b66d46

Browse files
committed
Correct spelling & grammar in 4.4 lock.rst
1 parent 62c0653 commit 5b66d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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.
99
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
11-
time to prevent race condition from happening.
11+
time to prevent race conditions from happening.
1212

1313
The following example shows a typical usage of the lock::
1414

@@ -189,7 +189,7 @@ Locking a Dynamic Resource
189189
--------------------------
190190

191191
Sometimes the application is able to cut the resource into small pieces in order
192-
to lock a small subset of process and let other through. The previous example
192+
to lock a small subset of processes and let others through. The previous example
193193
showed how to lock the ``$pdf->getOrCreatePdf('terms-of-use')`` for everybody,
194194
now let's see how to lock ``$pdf->getOrCreatePdf($version)`` only for
195195
processes asking for the same ``$version``::

0 commit comments

Comments
 (0)