Skip to content

Commit 1111730

Browse files
committed
Add doc aliases list and vector to Vec
1 parent 94b49fd commit 1111730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ mod spec_extend;
433433
#[stable(feature = "rust1", since = "1.0.0")]
434434
#[rustc_diagnostic_item = "Vec"]
435435
#[rustc_insignificant_dtor]
436+
#[doc(alias = "list")]
437+
#[doc(alias = "vector")]
436438
pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
437439
buf: RawVec<T, A>,
438440
len: usize,

0 commit comments

Comments
 (0)