Skip to content
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

[Docs] use self.cap in heap allocated array example #4127

Open
illiasheshyn opened this issue Mar 9, 2025 · 0 comments
Open

[Docs] use self.cap in heap allocated array example #4127

illiasheshyn opened this issue Mar 9, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@illiasheshyn
Copy link

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 previous HeapArray example in the Copy constructor)

Anything else?

The pull request with the correction #4126

@illiasheshyn illiasheshyn added the documentation Improvements or additions to documentation label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant