Skip to content

Commit 176b965

Browse files
authored
Link Vec leak doc to Box
1 parent 3828489 commit 176b965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ impl<T> Vec<T> {
14761476
/// `'a`. If the type has only static references, or none at all, then this
14771477
/// may be chosen to be `'static`.
14781478
///
1479-
/// This function is similar to the `leak` function on `Box`.
1479+
/// This function is similar to the [`leak`][Box::leak] function on [`Box`].
14801480
///
14811481
/// This function is mainly useful for data that lives for the remainder of
14821482
/// the program's life. Dropping the returned reference will cause a memory

0 commit comments

Comments
 (0)