提交 a36c3f6f 编写于 作者: M Mahmoud Al-Qudsi

Revise the text of `vec::split_off()` per review in #65739

Remove the incorrect usage of "copy" as the trait is not called.
上级 8c7530ad
......@@ -1333,10 +1333,9 @@ pub fn is_empty(&self) -> bool {
/// 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
///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册