Skip to content

Commit

Permalink
Rollup merge of rust-lang#77709 - pickfire:patch-1, r=jyn514
Browse files Browse the repository at this point in the history
Link Vec leak doc to Box
  • Loading branch information
JohnTitor authored Oct 10, 2020
2 parents 094c25a + 8688fa8 commit b8d39e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,8 @@ 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`]
/// except that there is no way to recover the leaked memory.
///
/// 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 b8d39e1

Please sign in to comment.