-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Document the return values of resize
on packed arrays
#10760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The method Addednum: Looking at the source code, I find that |
So you just want resize() to show it's return value in the docs? |
So like the commit I just made? |
That's the idea. But no. Make the commit against the main Godot repository: https://github.com/godotengine/godot/tree/master/doc As far as I know the files you edited are autogenerated from that. And then a pull request saying it fixes my issue, so it can be reviewed and merged. I made the issue because these in particular can be confusing ( |
Is the new description I made good? |
It does what I asked. Yet, take other parts of the documentation as example of how to phrase it. For instance Array Insert: https://docs.godotengine.org/en/stable/classes/class_array.html#class-array-method-insert and once you make a pull request against the main godot repository it would be reviewed, and if there is anything missing or unclear they will tell you. In fact, I'm hoping somebody more familiar with it to have a look at it, not just me. |
I made some changes in the official godot repo and declared a pull request: godotengine/godot#104258 |
Closed by godotengine/godot#104258 |
Your Godot version:
v4.4.stable.official [4c311cbee]
Issue description:
The
resize
method of packed array returnsint
, but the documentation does not explain what the value is. In practices it returns0
and for what I understand from the source code it is anError
. So, I presume the only other possible value isERR_OUT_OF_MEMORY
.Note that it is not hard to imagine that the return value is something related to the size.
URL to the documentation page (if already existing):
The text was updated successfully, but these errors were encountered: