Skip to content

Commit

Permalink
Link Vec leak doc to Box
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire committed Oct 8, 2020
1 parent 3828489 commit 176b965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec.rs
Expand Up @@ -1476,7 +1476,7 @@ impl<T> Vec<T> {
/// `'a`. If the type has only static references, or none at all, then this
/// 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
/// the program's life. Dropping the returned reference will cause a memory
Expand Down

0 comments on commit 176b965

Please sign in to comment.