diff --git a/doc/classes/String.xml b/doc/classes/String.xml index bf4916dc93f..05288541ea5 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -488,11 +488,11 @@ Returns [code]true[/code] if this string contains a valid integer. [codeblock] - print("7".is_valid_int()) # Prints "True" - print("14.6".is_valid_int()) # Prints "False" - print("L".is_valid_int()) # Prints "False" - print("+3".is_valid_int()) # Prints "True" - print("-12".is_valid_int()) # Prints "True" + print("7".is_valid_integer()) # Prints "True" + print("14.6".is_valid_integer()) # Prints "False" + print("L".is_valid_integer()) # Prints "False" + print("+3".is_valid_integer()) # Prints "True" + print("-12".is_valid_integer()) # Prints "True" [/codeblock]