about summary refs log tree commit diff
path: root/library/alloc/src/vec
diff options
context:
space:
mode:
authorJacob Asper <jacobasper191@gmail.com>2024-02-18 05:29:56 -0500
committerJacob Asper <jacobasper191@gmail.com>2024-02-18 05:47:30 -0500
commitef1a58484286454af6815d7e8a2f52c10b1449f2 (patch)
tree421bd7fec804f5469f70f6124306d08c33b818b8 /library/alloc/src/vec
parentd2f825f26127f71cd853c602818452c8be876ea8 (diff)
downloadrust-ef1a58484286454af6815d7e8a2f52c10b1449f2.tar.gz
rust-ef1a58484286454af6815d7e8a2f52c10b1449f2.zip
intradoc link for vec
Diffstat (limited to 'library/alloc/src/vec')
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 711b4a8a8ef..e9a57c0a47b 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -1493,7 +1493,7 @@ impl<T, A: Allocator> Vec<T, A> {
     ///
     /// # Time complexity
     ///
-    /// Takes *O*(`len`) time. All items after the insertion index must be
+    /// Takes *O*([`Vec::len`]) time. All items after the insertion index must be
     /// shifted to the right. In the worst case, all elements are shifted when
     /// the insertion index is 0.
     #[cfg(not(no_global_oom_handling))]