Fix capitalization of boolean output in classref
This commit is contained in:
parent
6c56433997
commit
94a5f9edb0
1 changed files with 13 additions and 13 deletions
|
@ -452,11 +452,11 @@
|
||||||
<description>
|
<description>
|
||||||
Returns [code]true[/code] if this string contains a valid float. This is inclusive of integers, and also supports exponents:
|
Returns [code]true[/code] if this string contains a valid float. This is inclusive of integers, and also supports exponents:
|
||||||
[codeblock]
|
[codeblock]
|
||||||
print("1.7".is_valid_float()) # Prints "true"
|
print("1.7".is_valid_float()) # Prints "True"
|
||||||
print("24".is_valid_float()) # Prints "true"
|
print("24".is_valid_float()) # Prints "True"
|
||||||
print("7e3".is_valid_float()) # Prints "true"
|
print("7e3".is_valid_float()) # Prints "True"
|
||||||
print("24".is_valid_float()) # Prints "true"
|
print("24".is_valid_float()) # Prints "True"
|
||||||
print("Hello".is_valid_float()) # Prints "false"
|
print("Hello".is_valid_float()) # Prints "False"
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
@ -478,9 +478,9 @@
|
||||||
<description>
|
<description>
|
||||||
Returns [code]true[/code] if this string is a valid identifier. A valid identifier may contain only letters, digits and underscores ([code]_[/code]) and the first character may not be a digit.
|
Returns [code]true[/code] if this string is a valid identifier. A valid identifier may contain only letters, digits and underscores ([code]_[/code]) and the first character may not be a digit.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
print("good_ident_1".is_valid_identifier()) # Prints "true"
|
print("good_ident_1".is_valid_identifier()) # Prints "True"
|
||||||
print("1st_bad_ident".is_valid_identifier()) # Prints "false"
|
print("1st_bad_ident".is_valid_identifier()) # Prints "False"
|
||||||
print("bad_ident_#2".is_valid_identifier()) # Prints "false"
|
print("bad_ident_#2".is_valid_identifier()) # Prints "False"
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
@ -489,11 +489,11 @@
|
||||||
<description>
|
<description>
|
||||||
Returns [code]true[/code] if this string contains a valid integer.
|
Returns [code]true[/code] if this string contains a valid integer.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
print("7".is_valid_int()) # Prints "true"
|
print("7".is_valid_int()) # Prints "True"
|
||||||
print("14.6".is_valid_int()) # Prints "false"
|
print("14.6".is_valid_int()) # Prints "False"
|
||||||
print("L".is_valid_int()) # Prints "false"
|
print("L".is_valid_int()) # Prints "False"
|
||||||
print("+3".is_valid_int()) # Prints "true"
|
print("+3".is_valid_int()) # Prints "True"
|
||||||
print("-12".is_valid_int()) # Prints "true"
|
print("-12".is_valid_int()) # Prints "True"
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
|
Loading…
Reference in a new issue