File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 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};
99use crate :: ptr:: Unique ;
1010use crate :: slice:: { self , SliceIndex } ;
1111
12- /// `*mut T` but non-zero and covariant.
12+ /// `*mut T` but non-zero and [ covariant] .
1313///
1414/// This is often the correct thing to use when building data structures using
1515/// raw pointers, but is ultimately more dangerous to use because of its additional
@@ -42,6 +42,7 @@ use crate::slice::{self, SliceIndex};
4242/// it is your responsibility to ensure that `as_mut` is never called, and `as_ptr`
4343/// is never used for mutation.
4444///
45+ /// [covariant]: https://doc.rust-lang.org/reference/subtyping.html
4546/// [`PhantomData`]: crate::marker::PhantomData
4647/// [`UnsafeCell<T>`]: crate::cell::UnsafeCell
4748#[ stable( feature = "nonnull" , since = "1.25.0" ) ]
You can’t perform that action at this time.
0 commit comments