rollup merge of #23886: demelev/remove_as_slice_usage
This commit is contained in:
commit
6d2c640cf0
24 changed files with 41 additions and 42 deletions
|
|
@ -527,7 +527,8 @@ impl<T> VecDeque<T> {
|
|||
/// buf.push_back(3);
|
||||
/// buf.push_back(4);
|
||||
/// let b: &[_] = &[&5, &3, &4];
|
||||
/// assert_eq!(buf.iter().collect::<Vec<&i32>>().as_slice(), b);
|
||||
/// let c: Vec<&i32> = buf.iter().collect();
|
||||
/// assert_eq!(&c[..], b);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn iter(&self) -> Iter<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue