diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2022-12-27 19:44:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-27 19:44:58 +0200 |
| commit | 4df5459dd1d65cf15cd9fb8514d11ffbec611d2b (patch) | |
| tree | fd50d6d50ecebf6bd744a01039e66e0e46e77956 /library/alloc/src | |
| parent | b38a6d373cb254697411147c0e49cd2e84864258 (diff) | |
| download | rust-4df5459dd1d65cf15cd9fb8514d11ffbec611d2b.tar.gz rust-4df5459dd1d65cf15cd9fb8514d11ffbec611d2b.zip | |
Update the documentation of `Vec` to use `extend(array)` instead of `extend(array.iter().copied())`
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index ba34ab6800f..1028bb981b9 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -166,7 +166,7 @@ mod spec_extend; /// vec[0] = 7; /// assert_eq!(vec[0], 7); /// -/// vec.extend([1, 2, 3].iter().copied()); +/// vec.extend([1, 2, 3]); /// /// for x in &vec { /// println!("{x}"); |
