diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-10-08 23:39:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-08 23:39:31 +0800 |
| commit | 176b96516fed01dbf858b1b9d342dd2e3aa48a37 (patch) | |
| tree | 7671c91ce89a0d579077c2962c8f3c456d244e23 | |
| parent | 382848989f91fa2c25390f0d5c1e8b1ae94f47df (diff) | |
| download | rust-176b96516fed01dbf858b1b9d342dd2e3aa48a37.tar.gz rust-176b96516fed01dbf858b1b9d342dd2e3aa48a37.zip | |
Link Vec leak doc to Box
| -rw-r--r-- | library/alloc/src/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index e8e52299d0b..3f4a97df08d 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -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 |
