docs(allocator): improve doc comment examples for vec2::Vec#20969
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
Updates Rust doc-comment code fences in vec2::Vec to keep examples formatted as Rust after the bumpalo dependency removal, while preventing them from being executed as doctests.
Changes:
- Convert doc examples from fenced blocks labeled
texttoignore. - Fix code fence closers to standard
delimiters (instead oftext).
4b25323 to
de955d2
Compare
b997217 to
cdaac4a
Compare
Merge activity
|
Follow-on after #18168. With the removal of `bumpalo` dependency, the examples in doc comments in `vec2::Vec` would no longer compile. That PR marked them all as `text` to prevent them running as doctests. Change them to `ignore` instead. That's preferable as it at least makes sure they're valid Rust syntax.
cdaac4a to
91cf105
Compare
de955d2 to
7159d51
Compare

Follow-on after #18168.
With the removal of
bumpalodependency, the examples in doc comments invec2::Vecwould no longer compile. That PR marked them all astextto prevent them running as doctests. Change them toignoreinstead. That's preferable as it at least makes sure they're valid Rust syntax.