diff options
| author | Alexander Merritt <merritt.alex@gatech.edu> | 2016-07-09 21:43:47 -0400 |
|---|---|---|
| committer | Alexander Merritt <merritt.alex@gatech.edu> | 2016-07-09 21:50:25 -0400 |
| commit | 6a4016933e707019f637d9bf0e274bf45bd0cc13 (patch) | |
| tree | f80deb6005bdf5572eb9a2246a24e5d1d9f48b2b /src/libcollections | |
| parent | bb4a79b087158f396b984bdf552d2c90890b12a3 (diff) | |
| download | rust-6a4016933e707019f637d9bf0e274bf45bd0cc13.tar.gz rust-6a4016933e707019f637d9bf0e274bf45bd0cc13.zip | |
make clone_from_slice consistent with copy_from_slice
What 'this slice' refers to is not intuitive (we're in the docs for Vec).
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index cef8a33703b..943a14d83d0 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -848,7 +848,7 @@ impl<T> [T] { /// Copies the elements from `src` into `self`. /// - /// The length of this slice must be the same as the slice passed in. + /// The length of `src` must be the same as `self`. /// /// # Panics /// |
