提交 b5223d27 编写于 作者: B Bastian Kauschke

update `VecDeque::as_(mut)_slice` docs

上级 d068545b
......@@ -959,8 +959,8 @@ pub fn iter_mut(&mut self) -> IterMut<'_, T> {
/// Returns a pair of slices which contain, in order, the contents of the
/// `VecDeque`.
///
/// In case [`make_contiguous`](#method.make_contiguous) was previously called,
/// all elements of the deque are in the first slice and the second slice is empty.
/// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
/// of the `VecDeque` will be in the first slice and the second slice will be empty.
///
/// # Examples
///
......@@ -992,8 +992,8 @@ pub fn as_slices(&self) -> (&[T], &[T]) {
/// Returns a pair of slices which contain, in order, the contents of the
/// `VecDeque`.
///
/// In case [`make_contiguous`](#method.make_contiguous) was previously called,
/// all elements of the deque are in the first slice and the second slice is empty.
/// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
/// of the `VecDeque` will be in the first slice and the second slice will be empty.
///
/// # Examples
///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册