diff options
| author | Konrad Borowski <konrad@borowski.pw> | 2020-12-28 09:13:46 +0100 |
|---|---|---|
| committer | Konrad Borowski <konrad@borowski.pw> | 2020-12-28 09:13:46 +0100 |
| commit | 9e779986aa2aaa6d28b48020f9da8f37b95959ee (patch) | |
| tree | deac9895ba79eb0eb06912be3e23c5d6ae7621cd /library/alloc/src/string.rs | |
| parent | 6c523a7a0ef121fe97ad6a367a3f3b92f80dc3f0 (diff) | |
| download | rust-9e779986aa2aaa6d28b48020f9da8f37b95959ee.tar.gz rust-9e779986aa2aaa6d28b48020f9da8f37b95959ee.zip | |
Add "length" as doc alias to len methods
Diffstat (limited to 'library/alloc/src/string.rs')
| -rw-r--r-- | library/alloc/src/string.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 27b32b69502..91988928593 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1388,6 +1388,7 @@ impl String { /// assert_eq!(fancy_f.len(), 4); /// assert_eq!(fancy_f.chars().count(), 3); /// ``` + #[doc(alias = "length")] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn len(&self) -> usize { |
