diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-29 01:52:21 +0100 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-29 01:52:21 +0100 |
| commit | 4309f6d9a165d892c1174582f02a067b98bca2bd (patch) | |
| tree | 60a55edbfb283d072f81fea26dc92514d06e8fc5 /src/libcore/alloc | |
| parent | 3ade8ae6608a9d371580e5e8d68c26a4e3e897fb (diff) | |
| download | rust-4309f6d9a165d892c1174582f02a067b98bca2bd.tar.gz rust-4309f6d9a165d892c1174582f02a067b98bca2bd.zip | |
Minor doc fixes in `AllocInit::init`
Diffstat (limited to 'src/libcore/alloc')
| -rw-r--r-- | src/libcore/alloc/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs index cc8c730b63a..e6364b1e01c 100644 --- a/src/libcore/alloc/mod.rs +++ b/src/libcore/alloc/mod.rs @@ -44,7 +44,7 @@ pub enum AllocInit { impl AllocInit { /// Initialize the specified memory block. /// - /// This behaves like calling [`AllocInit::initialize_offset(ptr, layout, 0)`][off]. + /// This behaves like calling [`AllocInit::init_offset(memory, 0)`][off]. /// /// [off]: AllocInit::init_offset /// @@ -61,8 +61,8 @@ impl AllocInit { /// Initialize the memory block like specified by `init` at the specified `offset`. /// - /// This is a no-op for [`AllocInit::Uninitialized`] and writes zeroes for [`AllocInit::Zeroed`] - /// at `ptr + offset` until `ptr + layout.size()`. + /// This is a no-op for [`AllocInit::Uninitialized`][] and writes zeroes for + /// [`AllocInit::Zeroed`][] at `ptr + offset` until `ptr + layout.size()`. /// /// # Safety /// |
