We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 762a037 + 2a935f5 commit 90423c9Copy full SHA for 90423c9
src/libcollections/vec.rs
@@ -1958,7 +1958,7 @@ impl<T> IntoIter<T> {
1958
/// assert_eq!(into_iter.next().unwrap(), 'z');
1959
/// ```
1960
#[stable(feature = "vec_into_iter_as_slice", since = "1.15.0")]
1961
- pub fn as_mut_slice(&self) -> &mut [T] {
+ pub fn as_mut_slice(&mut self) -> &mut [T] {
1962
unsafe {
1963
slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
1964
}
0 commit comments