From 747cf1c249e7665f2ea152d26f1c5bb5118cb757 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Sun, 2 Jun 2024 05:26:17 +0700 Subject: [PATCH] typos --- src/array_find.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/array_find.php b/src/array_find.php index 12e2f9f..7ab843e 100644 --- a/src/array_find.php +++ b/src/array_find.php @@ -2,7 +2,7 @@ /** * Checks whether the $callback returns TRUE for ANY of the array - * element. + * elements. * * @param array $array The array that should be searched. * @param callable $callback The callback function to call to check @@ -79,9 +79,9 @@ function array_find(array $array, callable $callback): mixed { } /** - * Returns the KEY of the first element for which the $callback - * returns TRUE. If no matching element is found the function - * returns NULL. + * Returns the KEY of the first element from $array for which the + * $callback returns TRUE. If no matching element is found the + * function returns NULL. * * @param array $array The array that should be searched. * @param callable $callback The callback function to call to check