From 6c7b3de79faf1c994076bdfa76532fa08032d1a6 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 31 Mar 2022 08:15:30 +0000 Subject: [PATCH] Docs: Typo correction in `wp_fuzzy_number_match` DocBlock. Props costdev, kebbet. Fixes #55493. git-svn-id: https://develop.svn.wordpress.org/trunk@53035 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 8923cc23f3..a48b4bfc86 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -8411,7 +8411,7 @@ function is_php_version_compatible( $required ) { } /** - * Check if two numbers are nearly the same. + * Checks if two numbers are nearly the same. * * This is similar to using `round()` but the precision is more fine-grained. * @@ -8420,7 +8420,7 @@ function is_php_version_compatible( $required ) { * @param int|float $expected The expected value. * @param int|float $actual The actual number. * @param int|float $precision The allowed variation. - * @return bool Whether the numbers match whithin the specified precision. + * @return bool Whether the numbers match within the specified precision. */ function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) { return abs( (float) $expected - (float) $actual ) <= $precision;