We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c14c9ba + 8688fa8 commit 45e3574Copy full SHA for 45e3574
library/alloc/src/vec.rs
@@ -1476,7 +1476,8 @@ impl<T> Vec<T> {
1476
/// `'a`. If the type has only static references, or none at all, then this
1477
/// may be chosen to be `'static`.
1478
///
1479
- /// This function is similar to the `leak` function on `Box`.
+ /// This function is similar to the [`leak`][Box::leak] function on [`Box`]
1480
+ /// except that there is no way to recover the leaked memory.
1481
1482
/// This function is mainly useful for data that lives for the remainder of
1483
/// the program's life. Dropping the returned reference will cause a memory
0 commit comments