[PATCH v2 0/2] rust: alloc: fix and test `Vec::extend_with`

Hsiu Che Yu
2026-04-25T10:16:47Z

Fix an incorrect SAFETY comment and add a doc test for `Vec::extend_with`.

---
Changes in v2:
- Split into two separate patches per maintainer feedback

Hsiu Che Yu (2):
rust: alloc: add doc test for `Vec::extend_with`
rust: alloc: fix `Vec::extend_with` SAFETY comment

rust/kernel/alloc/kvec.rs | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

--
2.43.0