diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-09-16 00:45:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 00:45:44 +0200 |
commit | a1a8afafd4de2706710aa6e5876c1aed7431fe43 (patch) | |
tree | 1c02794f3b5d99751b0ab973c7431f95aced7b8a | |
parent | 7c689fb3847de7e98553e28526245854ca803ac6 (diff) | |
parent | 5b49c6bba4e4824f102135b2d10fcda0f1d5eb97 (diff) |
Merge pull request #52472 from mhilbrunner/array-slice-docs
Fix docs for Array's slice()
-rw-r--r-- | doc/classes/Array.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 02c6b18d55..91450e50a4 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -495,7 +495,7 @@ <argument index="2" name="step" type="int" default="1" /> <argument index="3" name="deep" type="bool" default="false" /> <description> - Duplicates the subset described in the function and returns it in an array, deeply copying the array if [code]deep[/code] is [code]true[/code]. Lower and upper index are inclusive, with the [code]step[/code] describing the change between indices while slicing. If [code]end[/code] is an invalid value, the end of the array is used. + Duplicates the subset described in the function and returns it in an array, deeply copying the array if [code]deep[/code] is [code]true[/code]. Lower and upper index are inclusive, with the [code]step[/code] describing the change between indices while slicing. Wraps around if [code]begin[/code] or [code]end[/code] are out of bounds or negative. Returns an empty array for invalid parameters. </description> </method> <method name="sort"> |