@@ -358,12 +358,13 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
358
358
/// - an (unstable) [extern type], then this function is always safe to
359
359
/// call, but may panic or otherwise return the wrong value, as the
360
360
/// extern type's layout is not known. This is the same behavior as
361
- /// [`size_of_val`] on a reference to an extern type tail.
361
+ /// [`size_of_val`] on a reference to a type with an extern type tail.
362
362
/// - otherwise, it is conservatively not allowed to call this function.
363
363
///
364
364
/// [slice]: ../../std/primitive.slice.html
365
365
/// [trait object]: ../../book/ch17-02-trait-objects.html
366
366
/// [extern type]: ../../unstable-book/language-features/extern-types.html
367
+ /// [`size_of_val`]: ../../core/mem/fn.size_of_val.html
367
368
///
368
369
/// # Examples
369
370
///
@@ -492,12 +493,13 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
492
493
/// - an (unstable) [extern type], then this function is always safe to
493
494
/// call, but may panic or otherwise return the wrong value, as the
494
495
/// extern type's layout is not known. This is the same behavior as
495
- /// [`align_of_val`] on a reference to an extern type tail.
496
+ /// [`align_of_val`] on a reference to a type with an extern type tail.
496
497
/// - otherwise, it is conservatively not allowed to call this function.
497
498
///
498
499
/// [slice]: ../../std/primitive.slice.html
499
500
/// [trait object]: ../../book/ch17-02-trait-objects.html
500
501
/// [extern type]: ../../unstable-book/language-features/extern-types.html
502
+ /// [`align_of_val`]: ../../core/mem/fn.align_of_val.html
501
503
///
502
504
/// # Examples
503
505
///
0 commit comments