Add "length" as doc alias to len methods
This commit is contained in:
parent
6c523a7a0e
commit
9e779986aa
13 changed files with 13 additions and 0 deletions
|
@ -1559,6 +1559,7 @@ impl<T, A: Allocator> Vec<T, A> {
|
|||
/// let a = vec![1, 2, 3];
|
||||
/// assert_eq!(a.len(), 3);
|
||||
/// ```
|
||||
#[doc(alias = "length")]
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn len(&self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue