Skip to content

Commit 705b4a8

Browse files
authored
Merge pull request #22 from ayrtonvwf/master
Fix README usage of shared lock
2 parents 16f3b0f + fba85ed commit 705b4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $lock->acquire();
5252

5353
// read /path/to/file
5454

55-
$lock->acquire();
55+
$lock->release();
5656

5757
// other processes can now acquire an exclusive lock on the file if no other shared lock remains.
5858
```

0 commit comments

Comments
 (0)