mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
5885e6d453
Add doc alias `memset` to `write_bytes` I were looking for `memset` in rust, but the docs only pointed me to `slice::fill`. With only the old aliases, one might write code like this, which is incorrect if the memory is uninitialized. ``` Rust core::slice::from_raw_parts(ptr, len).fill(0) ``` |
||
---|---|---|
.. | ||
alloc | ||
backtrace@4e5a3f7292 | ||
core | ||
panic_abort | ||
panic_unwind | ||
portable-simd | ||
proc_macro | ||
profiler_builtins | ||
rtstartup | ||
rustc-std-workspace-alloc | ||
rustc-std-workspace-core | ||
rustc-std-workspace-std | ||
std | ||
stdarch@28335054b1 | ||
test | ||
unwind |