File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::ops::{CoerceUnsized, DispatchFromDyn};
9
9
use crate :: ptr:: Unique ;
10
10
use crate :: slice:: { self , SliceIndex } ;
11
11
12
- /// `*mut T` but non-zero and covariant.
12
+ /// `*mut T` but non-zero and [ covariant] .
13
13
///
14
14
/// This is often the correct thing to use when building data structures using
15
15
/// raw pointers, but is ultimately more dangerous to use because of its additional
@@ -42,6 +42,7 @@ use crate::slice::{self, SliceIndex};
42
42
/// it is your responsibility to ensure that `as_mut` is never called, and `as_ptr`
43
43
/// is never used for mutation.
44
44
///
45
+ /// [covariant]: https://doc.rust-lang.org/reference/subtyping.html
45
46
/// [`PhantomData`]: crate::marker::PhantomData
46
47
/// [`UnsafeCell<T>`]: crate::cell::UnsafeCell
47
48
#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
You can’t perform that action at this time.
0 commit comments