diff options
| author | bors <bors@rust-lang.org> | 2016-07-09 21:16:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-09 21:16:20 -0700 |
| commit | c73bb9b7d9b5b2f8336683ad7efca7442ad5d379 (patch) | |
| tree | 2e0bc2ad98b7a227c1f5b2825ae428370ad162ae | |
| parent | 4d50e47ce50cb9725bf09833083b66f50bd203e0 (diff) | |
| parent | 6a4016933e707019f637d9bf0e274bf45bd0cc13 (diff) | |
| download | rust-c73bb9b7d9b5b2f8336683ad7efca7442ad5d379.tar.gz rust-c73bb9b7d9b5b2f8336683ad7efca7442ad5d379.zip | |
Auto merge of #34745 - alexandermerritt:slice-doc, r=brson
make docs for clone_from_slice consistent with copy_from_slice What 'this slice' refers to is not intuitive, given this method can appear in other places, e.g. in docs for Vec.
| -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 c8bbcee411c..53ae777c49f 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -847,7 +847,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 /// |
