diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2022-08-12 15:59:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 15:59:11 +0300 |
commit | 29492f90843c29e2f258d0167199592c2045f5e4 (patch) | |
tree | 7e7afc5f91074847e47cbc69c8c6ad0f47d8a0cf /doc/classes/PackedInt32Array.xml | |
parent | 65a1d86c4f4b893c6e72c5434c22a5ab7dcbe68b (diff) | |
parent | 1df86ecea555551baf53941e04392645a3810420 (diff) |
Merge pull request #64285 from asmaloney/doc-params-4
[doc] Use "param" instead of "code" to refer to parameters (4)
Diffstat (limited to 'doc/classes/PackedInt32Array.xml')
-rw-r--r-- | doc/classes/PackedInt32Array.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml index b29b1b1bd0..db4c8c0937 100644 --- a/doc/classes/PackedInt32Array.xml +++ b/doc/classes/PackedInt32Array.xml @@ -51,7 +51,7 @@ <param index="0" name="value" type="int" /> <param index="1" name="before" type="bool" default="true" /> <description> - Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search. Optionally, a [code]before[/code] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. + Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search. Optionally, a [param before] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. [b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior. </description> </method> @@ -93,7 +93,7 @@ <return type="bool" /> <param index="0" name="value" type="int" /> <description> - Returns [code]true[/code] if the array contains [code]value[/code]. + Returns [code]true[/code] if the array contains [param value]. </description> </method> <method name="insert"> @@ -164,9 +164,9 @@ <param index="0" name="begin" type="int" /> <param index="1" name="end" type="int" default="2147483647" /> <description> - Returns the slice of the [PackedInt32Array], from [code]begin[/code] (inclusive) to [code]end[/code] (exclusive), as a new [PackedInt32Array]. - The absolute value of [code]begin[/code] and [code]end[/code] will be clamped to the array size, so the default value for [code]end[/code] makes it slice to the size of the array by default (i.e. [code]arr.slice(1)[/code] is a shorthand for [code]arr.slice(1, arr.size())[/code]). - If either [code]begin[/code] or [code]end[/code] are negative, they will be relative to the end of the array (i.e. [code]arr.slice(0, -2)[/code] is a shorthand for [code]arr.slice(0, arr.size() - 2)[/code]). + Returns the slice of the [PackedInt32Array], from [param begin] (inclusive) to [param end] (exclusive), as a new [PackedInt32Array]. + The absolute value of [param begin] and [param end] will be clamped to the array size, so the default value for [param end] makes it slice to the size of the array by default (i.e. [code]arr.slice(1)[/code] is a shorthand for [code]arr.slice(1, arr.size())[/code]). + If either [param begin] or [param end] are negative, they will be relative to the end of the array (i.e. [code]arr.slice(0, -2)[/code] is a shorthand for [code]arr.slice(0, arr.size() - 2)[/code]). </description> </method> <method name="sort"> |