-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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: Vec<T>'s contents being contiguous could be a little more clear #31554
Comments
A more global description is a nice idea. However, keeping the original text is also a nice thing, it's appreciated to have algorithm's complexity. So from my point of view, this would be perfect:
|
part of #29380 |
Closes rust-lang#31554. Contributes to rust-lang#29380.
…t-in-vec-docs, r=steveklabnik Tweak documentation to clarify the structure of `Vec`s as contiguous arrays of items in memory. Closes rust-lang#31554; contributes to rust-lang#29380. r? @steveklabnik
…t-in-vec-docs, r=steveklabnik Tweak documentation to clarify the structure of `Vec`s as contiguous arrays of items in memory. Closes rust-lang#31554; contributes to rust-lang#29380. r? @steveklabnik
…cs, r=steveklabnik Tweak documentation to clarify the structure of `Vec`s as contiguous arrays of items in memory. Closes #31554; contributes to #29380. r? @steveklabnik
At the moment,
Vec<T>
's module and type doc pages don't quite make it clear that its contents are in fact contiguous. They imply it in several places......but it would be better to make it more clear. In addition,
Vec<T>
's documentation refers to it as a "growable list type", which could be misleading in light of this; "list" is more often used to mean a linked list.Perhaps something like one of these would be better as the description line:
The text was updated successfully, but these errors were encountered: