From ba696ecc9b575538e702be4b85415bb9fbe5718d Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 25 Jun 2022 10:10:27 +0800 Subject: [PATCH] Fix code example of String.is_valid_integer() --- doc/classes/String.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index f280f6263..20e43b789 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -524,11 +524,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]