Skip to content

Commit 4235652

Browse files
committed
minor #16247 Correct spelling & grammar in 4.4 lock.rst (gnito-org)
This PR was merged into the 4.4 branch. Discussion ---------- Correct spelling & grammar in 4.4 lock.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 5b66d46 Correct spelling & grammar in 4.4 lock.rst
2 parents eedb712 + 5b66d46 commit 4235652

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)