Skip to content

Commit d243017

Browse files
authored
Fix link to acquireRead
Should target SharedLockInterface instead of LockInterface
1 parent c08fbf0 commit d243017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ but an exclusive lock is needed for writing or modifying data. They are used for
221221
example for data structures that cannot be updated atomically and are invalid
222222
until the update is complete.
223223

224-
Use the :method:`Symfony\\Component\\Lock\\LockInterface::acquireRead` method
224+
Use the :method:`Symfony\\Component\\Lock\\SharedLockInterface::acquireRead` method
225225
to acquire a read-only lock, and the existing
226226
:method:`Symfony\\Component\\Lock\\LockInterface::acquire` method to acquire a
227227
write lock::

0 commit comments

Comments
 (0)