You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Realloc (in the trait for GlobalAlloc) is confusing in my opinion, what means the new_size parameter?
The size in bytes or how many times the size that is inside the layout?
In the way it is written seems to mean the bytes but it should be explicit that it means the size in bytes.
The text was updated successfully, but these errors were encountered:
alexevier
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Feb 10, 2023
Location
https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html#method.realloc
Summary
Realloc (in the trait for GlobalAlloc) is confusing in my opinion, what means the
new_size
parameter?The size in bytes or how many times the size that is inside the layout?
In the way it is written seems to mean the bytes but it should be explicit that it means the size in bytes.
The text was updated successfully, but these errors were encountered: