1
Fork 0

Add "length" as doc alias to len methods

This commit is contained in:
Konrad Borowski 2020-12-28 09:13:46 +01:00
parent 6c523a7a0e
commit 9e779986aa
13 changed files with 13 additions and 0 deletions

View file

@ -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 {