diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-06-26 13:57:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-26 13:57:33 -0700 |
| commit | 92af945256913dbec2c679a06e154469d60a0d7e (patch) | |
| tree | b60157806f12f82c4733fd6984a6f0d826b068e4 | |
| parent | 23b0776a594a0728a7706521c5193245de2ea823 (diff) | |
| parent | cb8c94c523d7ff407f9520a6555ea829c1232a50 (diff) | |
| download | rust-92af945256913dbec2c679a06e154469d60a0d7e.tar.gz rust-92af945256913dbec2c679a06e154469d60a0d7e.zip | |
Rollup merge of #73579 - RalfJung:doc-missing-links, r=shepmaster
add missing doc links The doc comments contain ``[`size_of_val`]`` but the link target was missing.
| -rw-r--r-- | src/libcore/mem/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index 1bd7ae3a34e..46e6ea7cd18 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -358,12 +358,13 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize { /// - an (unstable) [extern type], then this function is always safe to /// call, but may panic or otherwise return the wrong value, as the /// extern type's layout is not known. This is the same behavior as -/// [`size_of_val`] on a reference to an extern type tail. +/// [`size_of_val`] on a reference to a type with an extern type tail. /// - otherwise, it is conservatively not allowed to call this function. /// /// [slice]: ../../std/primitive.slice.html /// [trait object]: ../../book/ch17-02-trait-objects.html /// [extern type]: ../../unstable-book/language-features/extern-types.html +/// [`size_of_val`]: ../../core/mem/fn.size_of_val.html /// /// # Examples /// @@ -492,12 +493,13 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize { /// - an (unstable) [extern type], then this function is always safe to /// call, but may panic or otherwise return the wrong value, as the /// extern type's layout is not known. This is the same behavior as -/// [`align_of_val`] on a reference to an extern type tail. +/// [`align_of_val`] on a reference to a type with an extern type tail. /// - otherwise, it is conservatively not allowed to call this function. /// /// [slice]: ../../std/primitive.slice.html /// [trait object]: ../../book/ch17-02-trait-objects.html /// [extern type]: ../../unstable-book/language-features/extern-types.html +/// [`align_of_val`]: ../../core/mem/fn.align_of_val.html /// /// # Examples /// |
