Browse Source

Minor NaN doc fix (#10495)

RblSb 3 năm trước cách đây
mục cha
commit
ee9ef9dc98
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      std/Math.hx

+ 2 - 2
std/Math.hx

@@ -276,10 +276,10 @@ extern class Math {
 	static function isFinite(f:Float):Bool;
 
 	/**
-		Tells if `f` is not a valid number.
+		Tells if `f` is `Math.NaN`.
 
 		If `f` is `NaN`, the result is `true`, otherwise the result is `false`.
-		In particular, both `POSITIVE_INFINITY` and `NEGATIVE_INFINITY` are
+		In particular, `null`, `POSITIVE_INFINITY` and `NEGATIVE_INFINITY` are
 		not considered `NaN`.
 	**/
 	static function isNaN(f:Float):Bool;