Skip to content

Commit 4309f6d

Browse files
committed
Minor doc fixes in AllocInit::init
1 parent 3ade8ae commit 4309f6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/alloc/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub enum AllocInit {
4444
impl AllocInit {
4545
/// Initialize the specified memory block.
4646
///
47-
/// This behaves like calling [`AllocInit::initialize_offset(ptr, layout, 0)`][off].
47+
/// This behaves like calling [`AllocInit::init_offset(memory, 0)`][off].
4848
///
4949
/// [off]: AllocInit::init_offset
5050
///
@@ -61,8 +61,8 @@ impl AllocInit {
6161

6262
/// Initialize the memory block like specified by `init` at the specified `offset`.
6363
///
64-
/// This is a no-op for [`AllocInit::Uninitialized`] and writes zeroes for [`AllocInit::Zeroed`]
65-
/// at `ptr + offset` until `ptr + layout.size()`.
64+
/// This is a no-op for [`AllocInit::Uninitialized`][] and writes zeroes for
65+
/// [`AllocInit::Zeroed`][] at `ptr + offset` until `ptr + layout.size()`.
6666
///
6767
/// # Safety
6868
///

0 commit comments

Comments
 (0)