Fix parameter name for String.left and String.right

This commit is contained in:
Haoyu Qiu
2022-06-12 10:45:58 +08:00
parent d4235f51b1
commit 6f38c21253
4 changed files with 20 additions and 20 deletions

View File

@ -412,9 +412,9 @@
</method>
<method name="left" qualifiers="const">
<return type="String" />
<argument index="0" name="position" type="int" />
<argument index="0" name="length" type="int" />
<description>
Returns a number of characters from the left of the string. If negative [code]position[/code] is used, the characters are counted downwards from [String]'s length.
Returns a number of characters from the left of the string. If negative [code]length[/code] is used, the characters are counted downwards from [String]'s length.
Examples:
[codeblock]
print("sample text".left(3)) #prints "sam"
@ -599,9 +599,9 @@
</method>
<method name="right" qualifiers="const">
<return type="String" />
<argument index="0" name="position" type="int" />
<argument index="0" name="length" type="int" />
<description>
Returns a number of characters from the right of the string. If negative [code]position[/code] is used, the characters are counted downwards from [String]'s length.
Returns a number of characters from the right of the string. If negative [code]length[/code] is used, the characters are counted downwards from [String]'s length.
Examples:
[codeblock]
print("sample text".right(3)) #prints "ext"