From 8d9e6200a78d6477f36c417dfc4a5f09c2b77f23 Mon Sep 17 00:00:00 2001 From: Stephen Coakley Date: Fri, 16 Oct 2015 23:32:01 -0500 Subject: [PATCH] Documentation fixes --- src/Sync/FileMutex.php | 4 ++-- src/Sync/SemaphoreInterface.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sync/FileMutex.php b/src/Sync/FileMutex.php index a90f9ed..236477a 100644 --- a/src/Sync/FileMutex.php +++ b/src/Sync/FileMutex.php @@ -11,13 +11,13 @@ use Icicle\Coroutine; * system's implementation of file creation operations. Use this implementation * only if no other mutex types are available. * - * This implementation avoids using [flock()](http://php.net/manual/en/function.fopen.php) + * This implementation avoids using [flock()](http://php.net/flock) * because flock() is known to have some atomicity issues on some systems. In * addition, flock() does not work as expected when trying to lock a file * multiple times in the same process on Linux. Instead, exclusive file creation * is used to create a lock file, which is atomic on most systems. * - * @see http://php.net/manual/en/function.fopen.php + * @see http://php.net/fopen */ class FileMutex implements MutexInterface { diff --git a/src/Sync/SemaphoreInterface.php b/src/Sync/SemaphoreInterface.php index 124fa11..4be9587 100644 --- a/src/Sync/SemaphoreInterface.php +++ b/src/Sync/SemaphoreInterface.php @@ -29,7 +29,7 @@ interface SemaphoreInterface extends \Countable * * Acquires a lock from the semaphore asynchronously. * - * If there are one or more locks available, this function resolve imsmediately with a lock and the lock count is + * If there are one or more locks available, this function resolves immediately with a lock and the lock count is * decreased. If no locks are available, the semaphore waits asynchronously for a lock to become available. * * @return \Generator Resolves with a lock object when the acquire is successful.