]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #97565 - lukas-code:patch-1, r=thomcc
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Tue, 31 May 2022 05:57:36 +0000 (07:57 +0200)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 05:57:36 +0000 (07:57 +0200)
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)
```


Trivial merge