diff --git a/README.md b/README.md index 10c0999..bc4add1 100644 --- a/README.md +++ b/README.md @@ -441,7 +441,7 @@ try { $responses = await($promise); // responses successfully received } catch (Exception $e) { - // an error occured while performing the requests + // an error occurred while performing the requests } ``` diff --git a/examples/02-http-all.php b/examples/02-http-all.php index 3eaf0bd..0cda97c 100644 --- a/examples/02-http-all.php +++ b/examples/02-http-all.php @@ -29,7 +29,7 @@ function ($responses) { } }, function ($e) { - echo 'An error occured: ' . $e->getMessage() . PHP_EOL; + echo 'An error occurred: ' . $e->getMessage() . PHP_EOL; } ); diff --git a/examples/03-http-any.php b/examples/03-http-any.php index 9f96e8c..8093774 100644 --- a/examples/03-http-any.php +++ b/examples/03-http-any.php @@ -31,7 +31,7 @@ function ($url) { echo 'First successful URL is ' . $url . PHP_EOL; }, function ($e) { - echo 'An error occured: ' . $e->getMessage() . PHP_EOL; + echo 'An error occurred: ' . $e->getMessage() . PHP_EOL; } );