mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Fix code example of String.is_valid_integer()
This commit is contained in:
parent
4bbbf1816f
commit
ba696ecc9b
@ -524,11 +524,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>
|
||||
|
Loading…
Reference in New Issue
Block a user