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
This is a low-level operation that maintains none of the normal invariants of the type. Normally changing the length of a vector is done using one of the safe operations instead, such as truncate, resize, extend, or clear.
Clicking that link does nothing, aside from setting the target in the URL bar. The target does exist, it's just hidden/not expanded when you land on the page. (If you search for "Extend implementation that copies elements out of references before pushing them onto the Vec." it's right under there.) Once you expand that, clicking the link works, but I don't think one is going to really think to do that beforehand.
(The other methods in the blockquoted paragraph above are links too, but I didn't feel like typing out all the Markdown for them for the purposes of this bug. They render in the docs correctly.)
The text was updated successfully, but these errors were encountered:
Vec::set_len
currently reads:Where
extend
is a link to: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.extend-1Clicking that link does nothing, aside from setting the target in the URL bar. The target does exist, it's just hidden/not expanded when you land on the page. (If you search for "Extend implementation that copies elements out of references before pushing them onto the Vec." it's right under there.) Once you expand that, clicking the link works, but I don't think one is going to really think to do that beforehand.
This seems like exactly #52774 docs: dead link to std::vec::Vec::extend(), which was closed over a year ago. Regression?
(The other methods in the blockquoted paragraph above are links too, but I didn't feel like typing out all the Markdown for them for the purposes of this bug. They render in the docs correctly.)
The text was updated successfully, but these errors were encountered: