Explorar o código

document unspecified `null` behaviour for Std.parseInt (closes #6403)

Dan Korostelev %!s(int64=7) %!d(string=hai) anos
pai
achega
4c1953be9f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      std/Std.hx

+ 2 - 1
std/Std.hx

@@ -96,7 +96,8 @@ extern class Std {
 		Leading 0s that are not part of the 0x/0X hexadecimal notation are ignored, which means octal
 		notation is not supported.
 
-		If the input cannot be recognized, the result is `null`.
+		If `x` is null, the result is unspecified.
+		If `x` cannot be parsed as integer, the result is `null`.
 	**/
 	public static function parseInt( x : String ) : Null<Int>;