diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-12 12:45:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 12:45:03 +0200 |
commit | abcbe366613e07b5d0d314e895f0db0f28c59fd2 (patch) | |
tree | 6b3b89114dead596ccf853ce17f082321cae23b8 /doc/classes | |
parent | d4235f51b1a88e48d676b877422fb121d326935c (diff) | |
parent | 6f38c21253acf759230ea2e3300cb84df672fbcd (diff) |
Merge pull request #61959 from timothyqiu/right-desc
Fix parameter name for `String.left` and `String.right`
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/String.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 1f3d5596aa..f4d453700c 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -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" |