File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl Layout {
8585 /// # Safety
8686 ///
8787 /// This function is unsafe as it does not verify the preconditions from
88- /// [`Layout::from_size_align`](#method.from_size_align) .
88+ /// [`Layout::from_size_align`].
8989 #[ stable( feature = "alloc_layout" , since = "1.28.0" ) ]
9090 #[ rustc_const_stable( feature = "alloc_layout" , since = "1.28.0" ) ]
9191 #[ inline]
@@ -195,8 +195,7 @@ impl Layout {
195195 /// will *still* have size 16.
196196 ///
197197 /// Returns an error if the combination of `self.size()` and the given
198- /// `align` violates the conditions listed in
199- /// [`Layout::from_size_align`](#method.from_size_align).
198+ /// `align` violates the conditions listed in [`Layout::from_size_align`].
200199 #[ stable( feature = "alloc_layout_manipulation" , since = "1.44.0" ) ]
201200 #[ inline]
202201 pub fn align_to ( & self , align : usize ) -> Result < Self , LayoutErr > {
You can’t perform that action at this time.
0 commit comments