document invariant of `VecDeque::as_(mut)_slice`

This commit is contained in:
Bastian Kauschke 2020-03-22 14:59:38 +01:00
parent 626fdbce8b
commit ecf301d987
1 changed files with 6 additions and 0 deletions

View File

@ -959,6 +959,9 @@ impl<T> VecDeque<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.
///
/// # Examples
///
/// ```
@ -989,6 +992,9 @@ impl<T> VecDeque<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.
///
/// # Examples
///
/// ```