Skip to content

Commit

Permalink
Fix code example of String.is_valid_integer()
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Jun 25, 2022
1 parent f428bfd commit 6fb76ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/classes/String.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,11 @@
<description>
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]
</description>
</method>
Expand Down

0 comments on commit 6fb76ba

Please sign in to comment.