Skip to content

Commit

Permalink
Revise the text of vec::split_off() per review in rust-lang#65739
Browse files Browse the repository at this point in the history
Remove the incorrect usage of "copy" as the trait is not called.
  • Loading branch information
mqudsi committed Nov 16, 2019
1 parent 8c7530a commit a36c3f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1333,10 +1333,9 @@ impl<T> Vec<T> {

/// Splits the collection into two at the given index.
///
/// Copies the range from `[at, len)` to a newly allocated `Self`
/// and returns the result. The original `Self` will contain the
/// range from `[0, at)`. Note that the capacity of `self` does
/// not change.
/// Returns a newly allocated vector containing the elements in the range
/// `[at, len)`. After the call, the original vector will be left containing
/// the elements `[0, at)` with its previous capacity unchanged.
///
/// # Panics
///
Expand Down

0 comments on commit a36c3f6

Please sign in to comment.