Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Document that `Packed*Array`s' `remove_at` method cannot take negative indices

Synzorasize846ecc914a78
diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml
index 4e3df828798..013dcc897a2 100644
--- a/doc/classes/PackedByteArray.xml
+++ b/doc/classes/PackedByteArray.xml
@@ -455,7 +455,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedColorArray.xml b/doc/classes/PackedColorArray.xml
index df9994565fe..e5a57a5ebba 100644
--- a/doc/classes/PackedColorArray.xml
+++ b/doc/classes/PackedColorArray.xml
@@ -142,7 +142,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedFloat32Array.xml b/doc/classes/PackedFloat32Array.xml
index 21e32285f95..c59962cae17 100644
--- a/doc/classes/PackedFloat32Array.xml
+++ b/doc/classes/PackedFloat32Array.xml
@@ -143,7 +143,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedFloat64Array.xml b/doc/classes/PackedFloat64Array.xml
index c171825e5e7..4a2ad7c0702 100644
--- a/doc/classes/PackedFloat64Array.xml
+++ b/doc/classes/PackedFloat64Array.xml
@@ -144,7 +144,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml
index f2b1e63965c..e82b4c8705d 100644
--- a/doc/classes/PackedInt32Array.xml
+++ b/doc/classes/PackedInt32Array.xml
@@ -138,7 +138,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedInt64Array.xml b/doc/classes/PackedInt64Array.xml
index 9d25688160d..da63dba1fc5 100644
--- a/doc/classes/PackedInt64Array.xml
+++ b/doc/classes/PackedInt64Array.xml
@@ -139,7 +139,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedStringArray.xml b/doc/classes/PackedStringArray.xml
index 509f5dee262..13efe46b680 100644
--- a/doc/classes/PackedStringArray.xml
+++ b/doc/classes/PackedStringArray.xml
@@ -145,7 +145,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedVector2Array.xml b/doc/classes/PackedVector2Array.xml
index c60243a7fe9..06f4ccb2518 100644
--- a/doc/classes/PackedVector2Array.xml
+++ b/doc/classes/PackedVector2Array.xml
@@ -148,7 +148,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedVector3Array.xml b/doc/classes/PackedVector3Array.xml
index 3ffe8e7d274..63a40d1b101 100644
--- a/doc/classes/PackedVector3Array.xml
+++ b/doc/classes/PackedVector3Array.xml
@@ -147,7 +147,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">
diff --git a/doc/classes/PackedVector4Array.xml b/doc/classes/PackedVector4Array.xml
index 825022b1c69..6e4d63681f1 100644
--- a/doc/classes/PackedVector4Array.xml
+++ b/doc/classes/PackedVector4Array.xml
@@ -147,7 +147,7 @@
<return type="void" />
<param index="0" name="index" type="int" />
<description>
- Removes an element from the array by index.
+ Removes an element from the array by index. If [param index] is out-of-bounds or negative, this method fails.
</description>
</method>
<method name="resize">