Link Vec leak doc to Box
This commit is contained in:
parent
382848989f
commit
176b96516f
@ -1476,7 +1476,7 @@ impl<T> Vec<T> {
|
|||||||
/// `'a`. If the type has only static references, or none at all, then this
|
/// `'a`. If the type has only static references, or none at all, then this
|
||||||
/// may be chosen to be `'static`.
|
/// may be chosen to be `'static`.
|
||||||
///
|
///
|
||||||
/// This function is similar to the `leak` function on `Box`.
|
/// This function is similar to the [`leak`][Box::leak] function on [`Box`].
|
||||||
///
|
///
|
||||||
/// This function is mainly useful for data that lives for the remainder of
|
/// This function is mainly useful for data that lives for the remainder of
|
||||||
/// the program's life. Dropping the returned reference will cause a memory
|
/// the program's life. Dropping the returned reference will cause a memory
|
||||||
|
Loading…
Reference in New Issue
Block a user