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.
1 parent 10893a9 commit 018fb3eCopy full SHA for 018fb3e
src/libcollections/vec.rs
@@ -1929,7 +1929,7 @@ impl<T> IntoIter<T> {
1929
/// assert_eq!(into_iter.next().unwrap(), 'z');
1930
/// ```
1931
#[stable(feature = "vec_into_iter_as_slice", since = "1.15.0")]
1932
- pub fn as_mut_slice(&self) -> &mut [T] {
+ pub fn as_mut_slice(&mut self) -> &mut [T] {
1933
unsafe {
1934
slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
1935
}
0 commit comments