From 7b823df489e89d0ba3f6acd1cb788d3d8fbbf1e7 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Thu, 3 Sep 2020 18:08:25 -0400 Subject: [PATCH] Link to `#capacity-and-reallocation` when using with_capacity --- library/alloc/src/vec.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 27eefb05842..a9215eb2dbc 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -119,6 +119,9 @@ /// assert_eq!(vec, [0, 0, 0, 0, 0]); /// ``` /// +/// For more information, see +/// [Capacity and Reallocation](#capacity-and-reallocation). +/// /// Use a `Vec` as an efficient stack: /// /// ```