File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub enum AllocInit {
4444impl 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 ///
You can’t perform that action at this time.
0 commit comments