mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03: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) ```