Improve documentation for return value of Packed*Array.resize

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Max Chacon
2025-03-16 20:40:05 -04:00
committed by Rémi Verschelde
parent 97241ffea6
commit 44d10c576e
11 changed files with 12 additions and 2 deletions

View File

@ -150,6 +150,7 @@
<param index="0" name="new_size" type="int" />
<description>
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size. Calling [method resize] once and assigning the new values is faster than adding new elements one by one.
Returns [constant OK] on success, or one of the following [enum Error] constants if this method fails: [constant ERR_INVALID_PARAMETER] if the size is negative, or [constant ERR_OUT_OF_MEMORY] if allocations fail. Use [method size] to find the actual size of the array after resize.
</description>
</method>
<method name="reverse">