[Docs] use self.cap
in heap allocated array example
#4127
Labels
documentation
Improvements or additions to documentation
self.cap
in heap allocated array example
#4127
Where is the problem?
https://docs.modular.com/mojo/manual/lifecycle/life#move-constructor
What can we do better?
uses
self.size
to allocate memory (inconsistent with the previousHeapArray
example in the Copy constructor)Anything else?
The pull request with the correction #4126
The text was updated successfully, but these errors were encountered: